Set header utl_http
512663Jun 21 2007 — edited Jun 22 2007Hello,
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;