Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    BUG: URL Encoding not correct for plus sign

    Flic Hub
    2
    6
    573
    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.
    • joerg.pressel
      joerg.pressel last edited by

      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+PowerOn

      Problem 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 😞

      Emil 1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • joerg.pressel
          joerg.pressel @Emil last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • joerg.pressel
            joerg.pressel last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • joerg.pressel
              joerg.pressel @Emil last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • Emil
                Emil FlicTeam @joerg.pressel last edited by

                @joerg-pressel plus is usually space. Do you want an actual plus sign or space?

                joerg.pressel 2 Replies Last reply Reply Quote 0
                • First post
                  Last post