Welcome! Log In Create A New Profile


Re: Accessing original/raw HTTP request

Srebrenko Šehić
April 06, 2010 03:52AM
On Tue, Apr 6, 2010 at 9:09 AM, agentzh <agentzh@gmail.com> wrote:

>> I'm working on a module that needs to get access to the original/raw
>> HTTP request from the client. I don't need the request body, but only
>> the raw HTTP headers.
> See the r->header_in buffer. You can look into the implementation of
> the ngx_echo module's $echo_client_request_body variable for details:
> http://wiki.nginx.org/NginxHttpEchoModule#.24echo_client_request_headers
>> Furthermore, if the request
>> contains garbage, I want that too, but I'm afraid that garbage will
>> not always be available via r->headers_in.
> Use error_page 400 to capture requests with invalid headers because
> the nginx header parser will throw an exception immediately when it
> sees invalid headers. And the "garbage" will still be in r->header_in
> but may be incomplete.

Thanks. That's exactly what I was looking for.

nginx-devel mailing list
Subject Author Views Posted

Accessing original/raw HTTP request

Srebrenko Šehić 3972 April 05, 2010 10:10AM

Re: Accessing original/raw HTTP request

agentzh 1460 April 06, 2010 03:10AM

Re: Accessing original/raw HTTP request

Srebrenko Šehić 1662 April 06, 2010 03:52AM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 57
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready