Accessing original/raw HTTP request

Srebrenko Šehić ssehic at
Mon Apr 5 18:08:21 MSD 2010

Hi list,

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.

I know I can traverse all the r->headers_in, but I'm wondering if
there is a better and more efficient way? 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.

Any hints?


More information about the nginx-devel mailing list