(52) Empty reply from server
pankajitbhu at gmail.com
Thu May 5 04:57:46 UTC 2016
My module is basically for resource protection.
I have already running my module on other servers also.
My module follow below steps.
-Generate cookie and write in response header
-read from header when cookie is needed
IIS have API setheader() to set header and getheader() to get header.
Apache have apr_table_get() to get value from header and apr_table_set() to
set the value in header.
Do we have similar APIs in nginx?
How i can achieve same kind of behavior in nginx?
On Wed, May 4, 2016 at 7:16 PM, Valentin V. Bartenev <vbart at nginx.com>
> On Wednesday 27 April 2016 21:51:33 Pankaj Chaudhary wrote:
> > Hi,
> > Thank you,
> > I got this point.
> > But in my case i need to set cookie value in header later read from
> > the same value.
> > Is any example which i can follow for my requirement, can you suggest
> > please.
> I believe there are no examples for your requirement, since it's not
> something that is expected to be done with headers.
> As I've already wrote before, saving and accessing the same value from
> headers structure is a bad idea. I don't understand the reason why
> someone ever wants to access his own value such a strange way.
> Maybe if you clarify what the purpose of your module is, a better solution
> will be found.
> wbr, Valentin V. Bartenev
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx