Welcome! Log In Create A New Profile

Advanced

Re: (52) Empty reply from server

All files from this thread

File Name File Size   Posted by Date  
image.png 122.1 KB open | download pankajitbhu 05/02/2016 Read message
April 27, 2016 12:22PM
Hi,
Thank you,
I got this point.
But in my case i need to set cookie value in header later read from header
the same value.
Is any example which i can follow for my requirement, can you suggest
please.

Regards,
Pankaj

On Wed, Apr 27, 2016 at 9:08 PM, Valentin V. Bartenev <vbart@nginx.com>
wrote:

> On Wednesday 27 April 2016 13:26:47 Pankaj Chaudhary wrote:
> > Hi Bart,
> >
> > thank you for response.
> >
> > I have referred the /root/Downloads/nginx-1.9.14/src/http/v2 module code.
> >
> > Below is that sample code.
> > static ngx_int_t
> > ngx_http_v2_parse_authority(ngx_http_request_t *r, ngx_http_v2_header_t
> > *header)
> > {
> > ngx_table_elt_t *h;
> > ngx_http_header_t *hh;
> > ngx_http_core_main_conf_t *cmcf;
> >
> > static ngx_str_t host = ngx_string("host");
> >
> > h = ngx_list_push(&r->headers_in.headers);
> > if (h == NULL) {
> > return NGX_ERROR;
> > }
> >
> > h->hash = ngx_hash_key(host.data, host.len);
> >
> > h->key.len = host.len;
> > h->key.data = host.data;
> >
> > h->value.len = header->value.len;
> > h->value.data = header->value.data;
> >
> > h->lowcase_key = host.data;
> >
> > cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
> >
> > hh = ngx_hash_find(&cmcf->headers_in_hash, h->hash,
> > h->lowcase_key, h->key.len);
> [..]
>
> This code does what it supposed to do. It adds a parsed "host" header
> to the input headers list, and then it tries to find and call appropriate
> handler (the ngx_http_process_host() function in this particular case).
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

(52) Empty reply from server

Pankaj Chaudhary April 14, 2016 06:06AM

Re: (52) Empty reply from server

Francis Daly April 14, 2016 12:56PM

Re: (52) Empty reply from server

pankajitbhu April 14, 2016 02:08PM

Re: (52) Empty reply from server

Francis Daly April 14, 2016 05:14PM

Re: (52) Empty reply from server

pankajitbhu April 15, 2016 03:50AM

Re: (52) Empty reply from server

pankajitbhu April 18, 2016 06:56AM

Re: (52) Empty reply from server

Francis Daly April 18, 2016 07:36PM

Re: (52) Empty reply from server

pankajitbhu April 19, 2016 06:22AM

Re: (52) Empty reply from server

Francis Daly April 19, 2016 01:44PM

Re: (52) Empty reply from server

pankajitbhu April 20, 2016 03:26AM

Re: (52) Empty reply from server

Francis Daly April 20, 2016 03:40PM

Re: (52) Empty reply from server

pankajitbhu April 21, 2016 03:36AM

Re: (52) Empty reply from server

Francis Daly April 22, 2016 02:54PM

Re: (52) Empty reply from server

pankajitbhu April 26, 2016 07:24AM

Re: (52) Empty reply from server

Valentin V. Bartenev April 26, 2016 08:54AM

Re: (52) Empty reply from server

pankajitbhu April 27, 2016 03:58AM

Re: (52) Empty reply from server

Valentin V. Bartenev April 27, 2016 11:40AM

Re: (52) Empty reply from server

pankajitbhu April 27, 2016 12:22PM

Re: (52) Empty reply from server

Valentin V. Bartenev May 04, 2016 09:48AM

Re: (52) Empty reply from server

pankajitbhu May 05, 2016 01:00AM

Re: (52) Empty reply from server

Valentin V. Bartenev May 05, 2016 10:04AM

Re: (52) Empty reply from server

pankajitbhu May 09, 2016 05:06AM

Re: (52) Empty reply from server

Francis Daly May 10, 2016 04:48PM

Re: (52) Empty reply from server

pankajitbhu May 11, 2016 02:50AM

Re: (52) Empty reply from server

Francis Daly April 28, 2016 03:12AM

Re: (52) Empty reply from server Attachments

pankajitbhu May 02, 2016 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready