pharmark
wrote on 2016-10-13:
Hi,
I'm using the REST api and need to submit a POST request where the uri to be converted includes a query string.
So I've got the body of my request like this:
username=myusername&key=mykey&content_disposition=attachment&src=http://www.mydomain.com/mypage?variable1=yes&variable2=no
And of course, this causes issues as the ? and the final & are interpreted as part of the POST - and not part of the src
I've tried URL encoding it like this:
username=myusername&key=mykey&content_disposition=attachment&src=http://www.mydomain.com/mypage%3Fvariable1%3Dyes%26variable2%3Dno
But that doesn't seem to work. I just get the webpage without the variables.
Any advice?
Thanks
support
wrote on 2016-10-17:
Hello,
The URL encoded version should work. Which software are you using to make the POST request?
pharmark
wrote on 2016-10-17:
It's part of a CMS system - if it should work with URL encoding I will have another look and see if something else is causing it to fail.
Thanks