[dev] how to read client body data
manlio_perillo at libero.it
Wed Aug 22 00:51:18 MSD 2007
I'm tryng to understand how to read client body data for a request.
Reading the perl module and the dav module I have found these options:
What's the meaning of these parameters?
To read the client body data, all I have to do is to set the previous
parameters (as I wish) and call ngx_http_read_client_request_body with a
"secondary" handler that will receive the request object filled with the
Ihis operation is asyncronous, right?
This is the reason why you need to call ngx_http_finalize_request from
the "secondary" handler.
In the end, all I need is:
1) if the request body length is <= client_body_buffer_size, store
the body in *only one* memory buffer (that is, all the data stored in
a contiguos memory block)
2) if the request body length is > client_body_buffer_size, store
*all the* body in a temporary file.
Is 1) possible?
Thanks Manlio Perillo
More information about the nginx