How to use method POST to send XML using utl_http?
405972Oct 8 2003 — edited Jan 27 2004Hi,
I am trying to work out how to use the POST method to mimic submitting data from a HTML form, using utl_http.
I cannot use SOAP for this as the people I am sending the data to are just expecting an XML document to be sent to a standard CGI script running on their web server.
There is a lot of documentation on how to submit data using the POST method (using Utl_Http.Write_Text etc), but I cannot find anything that tells me how to submit form variables.
The examples on OTN say this:
"Alternatively use method => 'POST' and Utl_Http.Write_Text to
build an arbitrarily long message"
but don't tell me how to actually place the data into the required input parameters of the CGI program I am hitting.
I need to hit a URL such as
www.asite.com/cgiprogram
and pass in a parameter, eg
in_param="test+data"
I am currently doing this as a GET, which works, but the XML document I am passing in could potentially be bigger than the GET method will allow.
Any help would be greatly appreciated.
Thanks,
Leon.