<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eddie Awad’s Blog - Latest Comments in HTTP POST from inside Oracle</title><link>http://awads.disqus.com/</link><description>News, views, tips and tricks on Oracle and other fun stuff</description><atom:link href="https://awads.disqus.com/http_post_from_inside_oracle/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 20 Nov 2008 12:44:27 -0000</lastBuildDate><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3916431</link><description>&lt;p&gt;Thanks very much for sharing that Eddie, it saved me a lot of time!&lt;/p&gt;&lt;p&gt;   Best regards,&lt;/p&gt;&lt;p&gt;      -Adam vonNieda&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam vonNieda</dc:creator><pubDate>Thu, 20 Nov 2008 12:44:27 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658073</link><description>&lt;p&gt;@Ed: I tested your query and got the error: Certificate validation failure.&lt;/p&gt;&lt;p&gt;Connected to:&lt;br&gt;Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production&lt;br&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;/p&gt;&lt;p&gt;SQL&amp;gt; set define off&lt;br&gt;SQL&amp;gt; SELECT UTL_HTTP.REQUEST('&lt;a href="https://realtime.gpcatalogue.com/servlet/GPCRealTi" rel="nofollow noopener" target="_blank" title="https://realtime.gpcatalogue.com/servlet/GPCRealTi"&gt;https://realtime.gpcatalogu...&lt;/a&gt;&lt;br&gt;me?Query=Logon&amp;amp;Alias;=GXSRETL&amp;amp;Userid;=GXSREAL&amp;amp;Password;=REALTIME') FROM DUAL;&lt;br&gt;SELECT UTL_HTTP.REQUEST('&lt;a href="https://realtime.gpcatalogue.com/servlet/GPCRealTime?Qu" rel="nofollow noopener" target="_blank" title="https://realtime.gpcatalogue.com/servlet/GPCRealTime?Qu"&gt;https://realtime.gpcatalogu...&lt;/a&gt;&lt;br&gt;ery=Logon&amp;amp;Alias;=GXSRETL&amp;amp;Userid;=GXSREAL&amp;amp;Password;=REALTIME') FROM DUAL&lt;br&gt;       *&lt;br&gt;ERROR at line 1:&lt;br&gt;ORA-29273: HTTP request failed&lt;br&gt;ORA-06512: at "SYS.UTL_HTTP", line 1577&lt;br&gt;ORA-29024: Certificate validation failure&lt;br&gt;ORA-06512: at line 1&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Mon, 10 Nov 2008 00:25:11 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658072</link><description>&lt;p&gt;This information is great but I'm having problems calling a url with several parameters.&lt;br&gt;SELECT UTL_HTTP.REQUEST(&lt;br&gt;&lt;a href="https://realtime.gpcatalogue.com/servlet/GPCRealTime?Query=Logon&amp;amp;Alias=GXSRETL&amp;amp;Userid=GXSREAL&amp;amp;Password=REALTIME)" rel="nofollow noopener" target="_blank" title="https://realtime.gpcatalogue.com/servlet/GPCRealTime?Query=Logon&amp;amp;Alias=GXSRETL&amp;amp;Userid=GXSREAL&amp;amp;Password=REALTIME)"&gt;https://realtime.gpcatalogu...&lt;/a&gt; FROM DUAL&lt;/p&gt;&lt;p&gt;The query returns session timed out but pasting it in the browser it says login successfully...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ed Godalle</dc:creator><pubDate>Fri, 07 Nov 2008 16:28:30 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658071</link><description>&lt;p&gt;Great code example.  I ran into a problem however when I used this in a loop.  I got "ORA-29270: too many open HTTP requests" errors.  I finally found a fix that seemed to work...&lt;br&gt;   Exception&lt;br&gt;      When UTL_HTTP.END_OF_BODY Then&lt;br&gt;         UTL_HTTP.END_RESPONSE (l_http_resp);&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Wed, 29 Oct 2008 09:37:05 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658070</link><description>&lt;p&gt;For those of you who want to HTTP post some parameters to another site, use the following code:&lt;/p&gt;&lt;p&gt;set serveroutput on;&lt;br&gt;exec dbms_output.enable(1000000000);&lt;/p&gt;&lt;p&gt;set escape '\'&lt;/p&gt;&lt;p&gt;DECLARE&lt;br&gt;  req   UTL_HTTP.REQ;&lt;br&gt;  resp  UTL_HTTP.RESP;&lt;br&gt;  value VARCHAR2(1024);&lt;/p&gt;&lt;p&gt;  -- URL to post to&lt;br&gt;  v_url VARCHAR2(200) := 'http://T97040476TA9000/core_dmt/withdraw_job.php';&lt;/p&gt;&lt;p&gt;  -- Post Parameters&lt;br&gt;  v_param VARCHAR2(500) := 'pwd=coredmt8567\&amp;amp;core_id=12223\&amp;amp;type=PK\&amp;amp;reason=This is the test reason';&lt;br&gt;  v_param_length NUMBER := length(v_param);&lt;br&gt;BEGIN&lt;br&gt;  -- Set up proxy servers if required&lt;br&gt;  --  UTL_HTTP.SET_PROXY('&lt;a href="http://proxy.my-company.com" rel="nofollow noopener" target="_blank" title="proxy.my-company.com"&gt;proxy.my-company.com&lt;/a&gt;', '&lt;a href="http://corp.my-company.com" rel="nofollow noopener" target="_blank" title="corp.my-company.com"&gt;corp.my-company.com&lt;/a&gt;');&lt;br&gt;  req := UTL_HTTP.BEGIN_REQUEST (url=&amp;gt; v_url, method =&amp;gt; 'POST');&lt;br&gt;  --  UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');&lt;br&gt;  UTL_HTTP.SET_HEADER (r      =&amp;gt;  req, &lt;br&gt;                       name   =&amp;gt;  'Content-Type',   &lt;br&gt;                       value  =&amp;gt;  'application/x-www-form-urlencoded');&lt;br&gt;  UTL_HTTP.SET_HEADER (r      =&amp;gt;   req, &lt;br&gt;                       name   =&amp;gt;   'Content-Length', &lt;br&gt;                       value  =&amp;gt;   v_param_length);&lt;br&gt;  UTL_HTTP.WRITE_TEXT (r      =&amp;gt;   req, &lt;br&gt;                       data   =&amp;gt;   v_param);&lt;/p&gt;&lt;p&gt;  resp := UTL_HTTP.GET_RESPONSE(req);&lt;br&gt;  LOOP&lt;br&gt;    UTL_HTTP.READ_LINE(resp, value, TRUE);&lt;br&gt;    DBMS_OUTPUT.PUT_LINE(value);&lt;br&gt;  END LOOP;&lt;br&gt;  UTL_HTTP.END_RESPONSE(resp);&lt;br&gt;EXCEPTION&lt;br&gt;  WHEN UTL_HTTP.END_OF_BODY THEN&lt;br&gt;    UTL_HTTP.END_RESPONSE(resp);&lt;br&gt;END;&lt;br&gt;/&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ariel</dc:creator><pubDate>Thu, 02 Oct 2008 01:19:33 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658069</link><description>&lt;p&gt;Very nice, saved me hours of work I am sure!&lt;/p&gt;&lt;p&gt;It would be nice to know how to encode form elements into "x-www-form-Urlencoded" format and post. The examples I found using Oracle did it in Java, which I would rather avoid. XML will work however.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ethan</dc:creator><pubDate>Fri, 22 Aug 2008 14:58:33 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658068</link><description>&lt;p&gt;Hmmmm.  I was hoping that wouldn't be the answer :)&lt;/p&gt;&lt;p&gt;Oh well, guess I have to figure something else out then for doing this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">taneal</dc:creator><pubDate>Tue, 01 Jul 2008 20:10:35 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658067</link><description>&lt;p&gt;taneal, it seems that you need to decrypt the data on the other end.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Tue, 01 Jul 2008 18:54:40 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658066</link><description>&lt;p&gt;This is really interesting.  How would this work on a page that encrypts the names/ID's of form elements?  For instance, when a user creates a job post on our site, I then take them to a page that loads Craigslist into an IFRAME.  I want to be able to populate the fields with the information they entered on our site (so they don't have to re-type everything).  I've been having problems with it though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">taneal</dc:creator><pubDate>Tue, 01 Jul 2008 13:13:05 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658065</link><description>&lt;p&gt;Hi Eddie&lt;/p&gt;&lt;p&gt;The procedure works, as in it posts to the URL with the parameters, but it also throws an error:&lt;/p&gt;&lt;p&gt;SQL execution error, &lt;br&gt;ORA-29273: HTTP request failed &lt;br&gt;ORA-06512: at "SYS.UTL_HTTP", line 1029 ORA-29261: bad argument &lt;br&gt;ORA-06512: at "HH.UTIL_PKG", line 101&lt;/p&gt;&lt;p&gt;This is how im using the code (its in a trigger)&lt;/p&gt;&lt;p&gt;DECLARE&lt;br&gt;v_url varchar2(200);&lt;br&gt;l_data clob := '1';&lt;br&gt;....&lt;/p&gt;&lt;p&gt;BEGIN&lt;br&gt;...&lt;br&gt;	select REPLACE(REPLACE(:new.input_value,' ',NULL),'-',NULL) into v_phone_num from dual;&lt;br&gt;	-- select REPLACE(REPLACE(1234567,' ',NULL),'-',NULL) into v_phone_num from dual;&lt;br&gt;	v_url := 'http://www.******.com/test.asp?pnum=12345' || '&amp;amp;' || 'phone=' || v_phone_num;&lt;/p&gt;&lt;p&gt;util_pkg.http_post(p_url_in =&amp;gt; v_url, p_data_in =&amp;gt; l_data);&lt;/p&gt;&lt;p&gt;Im only passing 2 arguments, p_url and p_data_in, what is the bad argument error about?&lt;br&gt;Any help would be greatly appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shaman</dc:creator><pubDate>Fri, 11 Apr 2008 02:42:35 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658064</link><description>&lt;p&gt;Thanks! Worked well.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shaman</dc:creator><pubDate>Thu, 13 Mar 2008 08:31:20 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658063</link><description>&lt;p&gt;DB, I suggest you ask your question on the &lt;a href="http://forums.oracle.com/forums/forum.jspa?forumID=82" rel="nofollow noopener" target="_blank" title="http://forums.oracle.com/forums/forum.jspa?forumID=82"&gt;Forms OTN Forum&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Wed, 20 Feb 2008 15:46:33 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658062</link><description>&lt;p&gt;Thanks for the info. This article is good and it might work for me. I was wondering if at the receiving end i need to open a URL from ORACLE Forms, with the following code for hte post, how can I do that? Can I create this procedure at the database level and do the post there and then just invoke the URL from the when-button-pressed trigger using web.show_document()?&lt;/p&gt;&lt;p&gt;The code for hte post is something like this.&lt;/p&gt;&lt;p&gt;/* Code for the POST */&lt;/p&gt;&lt;p&gt;Click this button to view the books related to these courses.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DB</dc:creator><pubDate>Wed, 20 Feb 2008 14:24:31 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658061</link><description>&lt;p&gt;We are using similar PL/SQL code to post the XML to a WebService.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Erroring Scenario (Generally this code works perfectly in production,But the below case had happened once ):&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;1) XML has posted succesfully &lt;br&gt;2) When reading the response ( l_http_resp := utl_http.get_response (l_http_req);) an error occured and control goes to main Exception.&lt;br&gt;   and throwing a "Bad argument" error.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;How do Oracle manages a case where XML has posted successfully and then fail to provide success or failure response . ?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Anybody experience a similar error?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Oracle version: DB version 9.2.04 generates the XML and posts on an Oracle Apps Server (HTTPServer).&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Sample Code Summarized:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;pre&gt;-- Begin the post request&lt;br&gt;&lt;br&gt;-- Set the HTTP request headers&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Write the data to the body of the HTTP request&lt;br&gt;&lt;br&gt;    utl_http.write_text(l_http_req, p_data_in);&lt;br&gt;&lt;br&gt;-- Process the request and get the response.&lt;br&gt;&lt;br&gt; l_http_resp := utl_http.get_response (l_http_req);&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;if the response is 200 Then Insert into a post message table which logs the content of succesful message.&lt;br&gt;   if not 200 then I have a parent process which will retry posting after certain time.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Exception &lt;br&gt;    WHEN OTHERS THEN &lt;br&gt;      UTL_HTTP.END_RESPONSE(l_http_resp);&lt;br&gt;       Log Error.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Exact Error shows below.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;ORA-29273: HTTP request failed&lt;br&gt;ORA-06512: at "SYS.UTL_HTTP", line 1380&lt;br&gt;ORA-29261: bad argument&lt;br&gt;ORA-06512: at "Prodcode.Package_Name", line 120   (here line 120 is the PLSQL exception)&lt;br&gt;ORA-29273: HTTP request failed&lt;br&gt;ORA-06512: at "SYS.UTL_HTTP&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ask4bv</dc:creator><pubDate>Tue, 10 Apr 2007 14:39:37 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658060</link><description>&lt;p&gt;Hi, this example was very useful to me.&lt;br&gt;Thanks,&lt;br&gt;Peter.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Cunningham</dc:creator><pubDate>Mon, 26 Mar 2007 04:54:44 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658059</link><description>&lt;p&gt;Jeremy, I'm afraid I have not come across this or done this before (read an http post body from PL/SQL).&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;You may want to ask your question at &lt;a href="http://forums.oracle.com/forums/" rel="nofollow noopener" target="_blank" title="http://forums.oracle.com/forums/"&gt;http://forums.oracle.com/fo...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Cheers!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Sat, 24 Feb 2007 00:11:37 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658058</link><description>&lt;p&gt;Hi this is very interesting. Do you know how a pl/sql procedure running under mod_plsql can be coded to be the RECIPIENT of a POST like this (instead of the .cfm in yoiur example)? I am struggling to understand how I could implement this as it seems that you have to send into a pl/sql a procedure name=value pairs (whether using flexible paramater passing or not).&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I'd be interested to know if you've come across this and a a solution?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Regards&lt;br&gt;Jeremy&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeremy Ovenden</dc:creator><pubDate>Wed, 21 Feb 2007 09:39:25 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658057</link><description>&lt;p&gt;PaweÅ‚, it's always nice to save time. I do not know what you exactly mean by &lt;em&gt;Can I use little changed code in my app?&lt;/em&gt;, but I'll guess yes anyway.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Sun, 29 Oct 2006 17:50:10 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658056</link><description>&lt;p&gt;Great sample! It saved me lot of time today. Can I use little changed code in my app?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PaweÅ‚ Barut</dc:creator><pubDate>Fri, 27 Oct 2006 10:28:25 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658055</link><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I am using the following procdedure passing in these parameters&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;i_urltext := &lt;a href="http://www.clicksms.co.uk" rel="nofollow noopener" target="_blank" title="http://www.clicksms.co.uk"&gt;http://www.clicksms.co.uk&lt;/a&gt;:9090/&lt;br&gt;i_messagetext := sendsmstesttesttest message1000000000&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;CREATE OR REPLACE PROCEDURE POST_Test (o_replytext out VARCHAR2&lt;br&gt;,o_return_code out INTEGER&lt;br&gt;,i_messagetext in VARCHAR2&lt;br&gt;,i_urltext in VARCHAR2&lt;br&gt;,i_timeout in INTEGER DEFAULT 60)&lt;br&gt;IS&lt;br&gt;sslreq UTL_HTTP.req; /* Secure connection request /&lt;br&gt;rsp UTL_HTTP.resp; / Secure response /&lt;br&gt;replymessage VARCHAR2(32767); / reply message (local) /&lt;br&gt;replyline VARCHAR2(32767); / piece of reply message read from secure site. /&lt;br&gt;BEGIN&lt;br&gt;/ Set up wallet information for secure connection capability /&lt;br&gt;/ remove this line if you don't have wallet installed and are not using https /&lt;br&gt;-- UTL_HTTP.SET_WALLET('file:DirectoryPath','put password here');&lt;br&gt;/ Initiate request to secure site, set parameters /&lt;br&gt;sslreq := UTL_HTTP.BEGIN_REQUEST(i_urltext,'POST','HTTP/1.0');&lt;br&gt;UTL_HTTP.SET_HEADER(sslreq,'Content-Type','text/xml');&lt;br&gt;UTL_HTTP.SET_HEADER(sslreq,'Content-Length',to_char(length(i_messagetext)));&lt;br&gt;UTL_HTTP.SET_TRANSFER_TIMEOUT(i_timeout);&lt;br&gt;/ Write information over secure connection /&lt;br&gt;UTL_HTTP.WRITE_TEXT(sslreq,i_messagetext);&lt;br&gt;/ Initialize Response /&lt;br&gt;rsp:=UTL_HTTP.GET_RESPONSE(sslreq);&lt;br&gt;replymessage := '';&lt;br&gt;/ Retrieve response /&lt;br&gt;BEGIN&lt;br&gt;LOOP&lt;br&gt;UTL_HTTP.READ_LINE(rsp,replyline,TRUE);&lt;br&gt;replymessage := replymessage || replyline;&lt;br&gt;END LOOP;&lt;br&gt;UTL_HTTP.END_RESPONSE(rsp);&lt;br&gt;EXCEPTION&lt;br&gt;WHEN UTL_HTTP.END_OF_BODY THEN&lt;br&gt;UTL_HTTP.END_RESPONSE(rsp);&lt;br&gt;END;&lt;br&gt;/ Set output information */&lt;br&gt;o_replytext := replymessage;&lt;br&gt;o_return_code := 0;&lt;br&gt;EXCEPTION&lt;br&gt;WHEN OTHERS THEN&lt;br&gt;o_return_code := SQLCODE;&lt;br&gt;o_replytext := SQLERRM;&lt;br&gt;END POST_Test;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I am getting a TNS operation timed out error, please can you help&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;br&gt;Rashad&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rashad</dc:creator><pubDate>Fri, 24 Mar 2006 06:33:50 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658054</link><description>&lt;p&gt;Meg,&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Did you ever get this solved?  I'm running into the same problem.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dan</dc:creator><pubDate>Tue, 14 Mar 2006 14:10:17 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658052</link><description>&lt;p&gt;Meg, in your line:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;UTL_HTTP.SET_HEADER(l_request,'content-length',length(l_context_params));&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I believe that l_context_params should be the parameter containing the actual data (clob maybe?) that needs to be posted.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Then again, I have no idea about the structure of your programs, so I'm just guessing here.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Thu, 09 Feb 2006 16:00:46 -0000</pubDate></item><item><title>Re: HTTP POST from inside Oracle</title><link>http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/#comment-3658053</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Do you  know why I'm getting Null values for all the parameters, I'm sending as part of POST ?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;My code looks like :&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;l_request := UTL_HTTP.begin_request(l_servlet_uri, 'POST',UTL_HTTP.HTTP_VERSION_1_0);&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;UTL_HTTP.SET_HEADER(l_request,'Content-Type','text/xml');&lt;br&gt;UTL_HTTP.SET_HEADER(l_request,'content-length',length(l_context_params));&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Utl_Http.Write_Text(l_request,l_context_params);&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;l_context_params contains all the parameters separated by '&amp;amp;'.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;In the servlet when I try to say getParameter for individual parameters, I get Null values for everything.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Please advice.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Meg</dc:creator><pubDate>Wed, 08 Feb 2006 17:09:35 -0000</pubDate></item></channel></rss>