some questions about the upload module

Valery Kholodkov valery+nginxen at
Tue Sep 9 19:22:51 MSD 2008

"Manlio Perillo" <manlio_perillo at> wrote:

>    For the example in the source, how is the request body passed to the
>    PHP application encoded?

I simply replace r->request_body->bufs with the chain of buffers,
containing new body. The ngx_http_read_client_request_body function
somehow manages to read no data more and fastcgi and proxy modules are
clever enough to serialize those buffers properly.

I think Igor can explain you more why it works.

Best regards,
Valery Kholodkov

More information about the nginx mailing list