Get ngx_http_request_t as a char array
Maxim Dounin
mdounin at mdounin.ru
Fri Feb 27 12:23:44 UTC 2015
Hello!
On Fri, Feb 27, 2015 at 02:56:46PM +0400, Tigran Bayburtsyan wrote:
> Hi.
>
> I'm trying to make a smart logging module for Nginx and I need to get all
> HTTP request from client as a string (char *).
>
> I know that ngx_http_request_t contains all HTTP request data , but I don't
> need to make a loop through all headers_in parameters or request structure
> parameters.
>
> I want to get all request with body as a char * array, like Nginx is
> receiving from tcp socket.
There are two problems here:
- nginx is not receiving a request as a string from tcp socket,
even if you talk about headers only;
- consequently, it is not available as a string within nginx.
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list