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!

Reading HTTP header in

357241Oct 16 2008 — edited Oct 17 2008
Hello,

I've created a package and exposed it through mod_plsql and am calling it using curl , this is purely for testing so the code is very simple.

What I need to do is read the value of the header X-HTTP-Method-Override: PUT I'm adding to the request

curl Call
$ curl -i --proxy "" -H "X-HTTP-Method-Override: PUT" -X GET http://ww.sample.com/portal/my.atom.test
my.atom.test procedure
  procedure test as
  begin

    htp.p ('request_method='|| owa_util.get_cgi_env('request_method'));
    htp.p ('remote_addr='	|| owa_util.get_cgi_env ('remote_addr'));
    htp.p ('remote_user=' 	|| owa_util.get_cgi_env ('remote_user'));
    htp.p ('http_host=' 	|| owa_util.get_cgi_env ('http_host'));
    htp.p ('server_name=' 	|| owa_util.get_cgi_env ('server_name'));
    htp.p ('server_port=' 	|| owa_util.get_cgi_env ('server_port'));
    htp.p ('owa_util.get_owa_service_path=' || owa_util.get_owa_service_path);
    /*
    htp.prn('PLEASE GIVE ME X-HTTP-Method-Override HERE AHHHG!!! ');
    */
    
  end test;
Thanks in advance.

Regards,
Carl
This post has been answered by joelkallman-Oracle on Oct 17 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2008
Added on Oct 16 2008
4 comments
1,841 views