Also, it needs to work with a query string such as a.com/script?a=1&b=2 without mangling the "&"s in the query string.
I'm not sure, but could you try encoding the ? with its ASCII reference, so inplace of the ? in the URL use %3F.
been experimenting all afternoon. Tried the %3F already, but can't tell if it's working.
This is the url I'm sending
The server error message provides this url
I've no idea if the server converted the %3F to a "?" before looking for the http query string and I've no idea at what stage the &s are getting converted to &
I've tried encoding the &s, and get the exact same result.
I found httpbin.org/post which shows you your POSTed data.
When I use that server it seems the encoded "?" screws up the path to the script.
I'm guessing the same is happening with the real server I'm trying to talk to.
I'm not sure of a definitive answer, and hence am only spitballing. Is this a multi user system? If not, I wonder if it might be possible to use the HOSTS file on your machine to essentially create an alias for that site (can't remember if you can provide HOSTS with a full URI , or if it has to be an IP Address)
Interesting approach Matthew.
I'd like it to work from anywhere, so tried some url shortening sites to see if they'd map the url in the way I want. Couldn't find any that handled POSTed forms. Would have been nice to hide the offending parts of the url in a shortened one. My domain server url redirection doesn't pass the requests on either.
Hopefully a developer will read this and figure out a permanent fix for their httppost hack. They should have made a new function with dedicated parameters for url and post data instead of stuffing the two together inside "Insert From URL".