Skip to Main Content

SQL & PL/SQL

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!

Set header utl_http

512663Jun 21 2007 — edited Jun 22 2007
Hello,

I have a procedure wich is being called with an url, the first thing i want this procedure to do is set an http header. I tried using utl_http but so far no luck.

Can anyone help me?

Thanks in advance

Regards,
Oli

PROCEDURE setHttpHeader IS
req utl_http.req;
resp utl_http.resp;
value VARCHAR2(1024);

BEGIN
req := utl_http.begin_request('http://***************');
utl_http.set_header(req, 'P3P', 'policyref=\"********************\"');

resp := utl_http.get_response(req);

utl_http.end_response(resp);

END;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2007
Added on Jun 21 2007
6 comments
1,074 views