Unable to get large POST data in post handler nginx module

Mapper Uno lists at ruby-forum.com
Sun Mar 30 08:53:33 UTC 2014


I am writing an nginx module that processes POST requests. For small
data typically less than 1000 bytes, the module successfully receives
data. However, for larger data > 1000 bytes or so, I get NULL.

    ngx_http_request_t *r;
    ngx_chain_t *ch = r->request_body->bufs;

    // ----> For larger data ch->buf->pos is NULL
    u_char *incoming_data = ch->buf->pos;

Any help would be highly appreciated

Thanks in advance

Posted via http://www.ruby-forum.com/.

More information about the nginx mailing list