• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Http sender, url encoding...

    User help
    3
    4
    3.0k
    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.
    • S
      skiv71
      last edited by

      Hi,

      Can anyone tell me what files are responsible for encoding the URL's sent via the http sender?

      If i create a sending string, from a data point, such as... 'abc&__value=xyz' and the sending parameter = __point

      It should send http://host?__point=abc&__value=xyz but instead it converts everything in the data point string...

      so the receiver see's http://host?__point=abc%26__value%3Dxyz.

      Now a php server i've running can cope with this, but what i'd like to do it publish to a mango http receiver.

      In this case, the http receiver doesn't decode the string, and takes it as it is and so fails.

      Is the encoding down to the dojo uri.js file?

      Or is the error in that the http receiver is not decoding the url and reading it literally?

      Thanks

      Neil

      1 Reply Last reply Reply Quote 0
      • B
        Brokers2013
        last edited by

        wew

        1 Reply Last reply Reply Quote 0
        • K
          King Dragon
          last edited by

          @skiv71 said:

          Hi,

          Can anyone tell me what files are responsible for encoding the URL's sent via the http sender?

          If i create a sending string, from a data point, such as... 'abc&__value=xyz' and the sending parameter = __point

          It should send http://host?__point=abc&__value=xyz but instead it converts everything in the data point string...

          so the receiver see's http://host?__point=abc%26__value%3Dxyz.

          Now a php server i've running can cope with this, but what i'd like to do it publish to a mango http receiver.

          In this case, the http receiver doesn't decode the string, and takes it as it is and so fails.

          Is the encoding down to the dojo uri.js file?

          Or is the error in that the http receiver is not decoding the url and reading it literally?

          Thanks

          Neil

          Hey Neil,

          I don't know if you ever sorted out that issue. I would say that it is definitely an issue with the receiving party not decoding them properly. URL encoding is pretty standard actually.

          Ref: http://en.wikipedia.org/wiki/Percent-encoding

          Regards,
          KD

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