Complete
over 4 years ago

WERETECH-8127

supporting POST w/query params

I've discussed this with Travis and probably Coleman on the old forum and/or in messages and I know you had at one time opened an internal issue for it, but it wasn't a priority at that time. Opening this issue so I can find out the current priority/status/if it will ever be fixed.

The https POST transaction isn't allowed to have query parameters (e.g., ?x=y&a=b...) with Connect IQ (at least the last time I tested it), however it is a legal protocol option, even if it is discouraged for security reasons, so it should be supported, as some servers do require it.

  • thanks for the update.  iirc, in the original issue on the old forums i had tried it and it worked on the simulator but didn't work on a real device. i just retried it on the simulator and it still works there, i'll try on a real device shortly...

  • We have to give you status information directly. We don't expose our bug tracker to the public.

    That said, I did file a bug report as promised. That issue was closed as a duplicate of an issue that has a much larger scope. I had hoped to start working on that issue two weeks ago, but it has not happened yet. Simply put, no real progress.

    That said, believes that you can just append query parameters to the url and then specify headers like so:

    var options = {
        :method => Communications.HTTP_REQUEST_METHOD_POST,
        :headers => {
           "Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
        },
        :responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
    };

    I don't recall the actual specifics of the issue, and it appears that they may have been lost when we switched over to the new forums, but I'm fairly certain that you were already doing this and it was failing on devices?

  • is there a way to get status from the ticket # WERETECH-8127 ?  or is that internal-only & you will update us when you have some info?