🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Problems with text merge on http request module

    UIFlow
    1
    2
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thelandoffey
      last edited by

      Hello all!

      I have a silly problem with the http request module in UI Flow.

      When I put URL as a text e.g. https://www.test.com/example.php?client=1234 then it works!

      When I put it with text merge module https://...example.php?client" + clientvariable
      I always get a 400 bad request.
      When I add 2 variables it also adds a line break between the variables - 2nd part is "&room=" + variable as text merge

      http request just in the browser works of course :)

      Thx for any help! Appreciated!

      Oliver

      1 Reply Last reply Reply Quote 0
      • T
        thelandoffey
        last edited by

        Maybe this might help others:

        We kinda solved problem #1 after talking to a python guy :-P

        When you request values from http this MIGHT have some spaces included, even if you don't see them.
        "So we put truncate spaces from both ends" an all those variabels and that works!

        Don't think that this should be so hard to use - but anyhow - it works.

        So #2 stays open. How to reveive 2 variables via http request

        1 Reply Last reply Reply Quote 0
        • First post
          Last post