(52) Empty reply from server

Pankaj Chaudhary pankajitbhu at gmail.com
Thu Apr 21 07:34:40 UTC 2016


Hi,

Thank You!

yes i am able to write successfully but while reading i am not getting the
my written value in header.

for Example from my source code:-I am writing  "thisitestvalue" value
against  key "Set-Cookie" but if trying to read value against key "Set-Cookie"
 not getting .




On Thu, Apr 21, 2016 at 1:08 AM, Francis Daly <francis at daoine.org> wrote:

> On Wed, Apr 20, 2016 at 12:54:13PM +0530, Pankaj Chaudhary wrote:
>
> Hi there,
>
> > >>But your code snippet does not match exactly the types and return
> values
> > >>of that example. I don't know if that is something worth investigating.
> >
> > I have tried to change match exactly the types and return values
> > of that example. but below is response curl: (52) Empty reply from server
>
> > ngx_int_tset_custom_header_in_headers_out(ngx_http_request_t *r,
> > ngx_str_t *key, ngx_str_t *value) {
> <snip>
>
> The code snippet you show seems to relate to writing your own http
> headers.
>
> > below is "curl -i" response
> >
> > HTTP/1.1 200 OK
> > Server: nginx/1.9.12
> > Date: Wed, 20 Apr 2016 15:25:20 GMT
> > Content-Type: text/plain
> > Content-Length: 14
> > Connection: keep-alive
> > cookie: thisitestvalue
> > user_agent: 10.9 user
> > get-rese: Cookie
>
> The "curl" output you show seems to show your own http headers being
> successfully written.
>
> So it looks like what you have shown, is working.
>
> That's good.
>
>         f
> --
> Francis Daly        francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160421/e0f4b11a/attachment.html>


More information about the nginx mailing list