(52) Empty reply from server

Pankaj Chaudhary pankajitbhu at gmail.com
Tue Apr 19 10:21:17 UTC 2016


Hi all,

i am trying to search for one header with the specified name

i am not able to get header value .

below my code snippet.


ngx_http_core_main_conf_t   *clcf;
ngx_str_t                         *type;
ngx_uint_t                   hash;
ngx_str_t    val = ngx_string("http_cookie");


clcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);

hash = ngx_hash_key_lc(val.data, val.len);

type = ngx_hash_find(&clcf->headers_in_hash, hash,  val.data, val.len);

if (type != NULL) {


// type is not null but type->data value is null



}

On Tue, Apr 19, 2016 at 5:05 AM, Francis Daly <francis at daoine.org> wrote:

> On Mon, Apr 18, 2016 at 04:25:24PM +0530, Pankaj Chaudhary wrote:
>
> Hi there,
>
> > not able to read header value after setting...
> >
> > any help most welcome
>
> You have your nginx "hello world" module, yes?
>
> You can show your config and your "curl -i" request and response with
> your module's output, yes?
>
> Are you able to modify your module to read a particular request header
> and write the value to the response body?
>
> Are you able to modify your module to add a particular response header
> with a particular value?
>
> At what particular point does your implementation fail?
>
> If you can describe that, perhaps someone here will be able to offer
> some more direct help.
>
> Good luck with it,
>
>         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/20160419/1a288d78/attachment.html>


More information about the nginx mailing list