BUG: URL Encoding not correct for plus sign
-
I'm desperately trying to use Flic Buttons to control my Denon receiver. Using the URLs work great from a browser or API testing apps like RapidAPI.
Here an example:
http://192.168.xx.xx:8080/goform/formiPhoneAppPower.xml?1+PowerOnProblem seems to be that the URL encoding of Flic Hub is not correct for the plus sign (1+PowerOn) of the parameter. I also tried escaping it myself with %2B or using \+. Tried with the SDK, too. No success. Any work around or fix?
In general, the connection is working if I use commands like:
/goform/formiPhoneAppDirect.xml?MVUP
That's because there is no plus sign -
For more information, please read https://stackoverflow.com/questions/2678551/when-should-space-be-encoded-to-plus-or-20.
In the current firmware version, a + in a query string is translated to %20 before the request is being sent. So, your device will receive the query string 1%20PowerOn, which should be interpreted exactly the same as 1+PowerOn.
In the next firmware version, we will no longer translate + to %20 anymore.
-
This post is deleted! -
This post is deleted! -
@Emil I tried all combinations and came to the conclusion, that encoding of the parameter part is going wrong. From my understanding the plus sign on the Denon side is a space, but %20 or space does not work.
-
@joerg-pressel plus is usually space. Do you want an actual plus sign or space?