Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use method POST to send XML using utl_http?

405972Oct 8 2003 — edited Jan 27 2004
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2004
Added on Oct 8 2003
1 comment
509 views