BHadfield
7 years agoContributor
url-encoded parameter for post body
Hi,
I'm trying to make a rest request to an endpoint that requires a post query string but where the parameter value is a large XML document.
the body of the post would look like
request=%3CValidation%3E%0A%3CInputs%... (very long string here)
I'm trying to accomplish a request that works like this curl call
curl -X POST --data-urlencode request@example.xml 'http://www.xxx.etc'
Other than sticking the XML into one of the parameter fields on the request (and then it is too long) how should this be done?