Welcome! Log In Create A New Profile

Advanced

Re: read request body with http2

October 14, 2019 02:41PM
this is what i have in the module handler function

rc = ngx_http_read_client_request_body(r, ngx_http_test_read_req);
if (rc != NGX_OK && rc != NGX_AGAIN) {
return rc;
}


And this is what i have in
ngx_http_test_read_req

char *buffer = ngx_pcalloc(r->pool, cglcf->req_len);

for (in = r->request_body->bufs; in; in = in->next) {
len = ngx_buf_size(in->buf);
ngx_memcpy(buffer + pos,in->buf->pos,len);
pos += len;
}


Do you see anything wrong in how i access the request body?
Subject Author Posted

read request body with http2

Ansuel October 13, 2019 08:47PM

Re: read request body with http2

Maxim Dounin October 14, 2019 10:26AM

Re: read request body with http2

Ansuel October 14, 2019 02:41PM

Re: read request body with http2

Maxim Dounin October 15, 2019 10:58AM

Re: read request body with http2

Ansuel October 17, 2019 04:42PM

Re: read request body with http2

Maxim Dounin October 21, 2019 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready