how i can use third party library while building own nginx module

2016-07-21 Thread Pankaj Chaudhary
Hi, how i can use third party library while building own nginx module as i am using third party libraries. Thanks, Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

error while building own nginx module

2016-07-20 Thread Pankaj Chaudhary
error while loading in nginx.conf file. nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_auth_module.so" failed (/usr/local/nginx/modules/ngx_http_auth_module.so: undefined symbol: ngx_http_auth_module Please let me know correct way to do. Thanks & Regards, Pa

Re: while building own nginx module error to find user defined header file

2016-07-20 Thread Pankaj Chaudhary
, Pankaj Chaudhary wrote: > Hi , > Thank you, > > after using this script also i am getting same error. > I have makefile which provide other header file path and third party lib > path. > I have structure like this > module_folder/ > 1.module.cpp > 2.config > 3.M

error nginx: [emerg] dlopen() "/usr/local/nginx/modules/ds_http_module.so" failed (/usr/local/nginx/modules/ds_http_module.so: undefined symbol: ds_http_module

2016-07-20 Thread Pankaj Chaudhary
Hi All, I am getting error below error for own written module ds_http_module. nginx: [emerg] dlopen() "/usr/local/nginx/modules/ds_http_module.so" failed (/usr/local/nginx/modules/ds_http_module.so: undefined symbol: ds_http_module Please let me know what could be the reason of this error. Reg

Re: while building own nginx module error to find user defined header file

2016-07-19 Thread Pankaj Chaudhary
please let me know what i should do. On Mon, Jul 18, 2016 at 6:39 PM, Maxim Dounin wrote: > Hello! > > On Mon, Jul 18, 2016 at 12:28:34PM +0530, Pankaj Chaudhary wrote: > > > I have written my own nginx module and i have my user defined header > files > > but while

while building own nginx module error to find user defined header file

2016-07-17 Thread Pankaj Chaudhary
Hi All, I have written my own nginx module and i have my user defined header files but while building i am getting error header file not found. my module will act as a filter. Please help me. Regards, Pankaj ___ nginx mailing list nginx@nginx.org ht

how can i get nginx lib

2016-06-27 Thread Pankaj Chaudhary
___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

reading config during run time

2016-05-23 Thread Pankaj Chaudhary
Hi, In my module i want to read config values run time. is there method available in nginx which i can use. Please suggest. Regards, Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: (52) Empty reply from server

2016-05-10 Thread Pankaj Chaudhary
d, May 11, 2016 at 2:17 AM, Francis Daly wrote: > On Mon, May 09, 2016 at 02:34:13PM +0530, Pankaj Chaudhary wrote: > > Hi there, > > > Its means nginx do not have any API as other server having to set header > > and get header ? very strange ... > > You are correct.

Re: (52) Empty reply from server

2016-05-09 Thread Pankaj Chaudhary
: > On Thursday 05 May 2016 10:27:46 Pankaj Chaudhary wrote: > > Hi, > > > > thank you! > > My module is basically for resource protection. > > I have already running my module on other servers also. > > My module follow below steps. > > -Generate cooki

Re: (52) Empty reply from server

2016-05-04 Thread Pankaj Chaudhary
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 > header > > the same value. > > Is any example which i can follow for my requirement, can you s

Re: (52) Empty reply from server

2016-04-27 Thread Pankaj Chaudhary
day 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 &g

Re: (52) Empty reply from server

2016-04-27 Thread Pankaj Chaudhary
, h->lowcase_key, h->key.len); Best Regards, Pankaj On Tue, Apr 26, 2016 at 6:23 PM, Valentin V. Bartenev wrote: > On Tuesday 26 April 2016 16:52:22 Pankaj Chaudhary wrote: > > Hi Francis, > > > > thank you for your input! > > > > I have r

Re: (52) Empty reply from server

2016-04-26 Thread Pankaj Chaudhary
al->lowcase_key, test_val->key.len); } curl response:-Test_val was accepting "somevalue" HTTP/1.1 200 OK Server: nginx/1.9.12 Date: Tue, 26 Apr 2016 19:13:40 GMT Content-Type: text/plain Content-Length: 34 Connection: keep-alive Test_Val: Cookie Hello, This is Nginx test Module! O

Re: (52) Empty reply from server

2016-04-21 Thread Pankaj Chaudhary
uot; not getting . On Thu, Apr 21, 2016 at 1:08 AM, Francis Daly 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 exam

Re: (52) Empty reply from server

2016-04-20 Thread Pankaj Chaudhary
text/plain Content-Length: 14 Connection: keep-alive cookie: thisitestvalue user_agent: 10.9 user get-rese: Cookie On Tue, Apr 19, 2016 at 11:12 PM, Francis Daly wrote: > On Tue, Apr 19, 2016 at 03:51:17PM +0530, Pankaj Chaudhary wrote: > > Hi there, > > > i am trying to sear

Re: (52) Empty reply from server

2016-04-19 Thread Pankaj Chaudhary
:05 AM, Francis Daly 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? > &g

Re: (52) Empty reply from server

2016-04-18 Thread Pankaj Chaudhary
not able to read header value after setting... any help most welcome On Fri, Apr 15, 2016 at 1:17 PM, Pankaj Chaudhary wrote: > Hi Francis, > > thank you! > > i have checked Emillers guide but i am not able to use the same for my > problem. > > I have my product in c

Re: (52) Empty reply from server

2016-04-15 Thread Pankaj Chaudhary
header by calling apr_table_get(). I am achieving the same behavior apr_table_set() with ngx_list_push() call but not able to find like apr_table_get() in nginx. Reagrds, Pankaj On Fri, Apr 15, 2016 at 2:43 AM, Francis Daly wrote: > On Thu, Apr 14, 2016 at 11:36:52PM +0530, Pankaj Chaudh

Re: (52) Empty reply from server

2016-04-14 Thread Pankaj Chaudhary
Hi Francis, Thank you for your comments. Actually I have requirement to add value to header and then read same value like cookies values,URL. Is any API which I can use for the same. Please suggest. On 14 Apr 2016 22:25, "Francis Daly" wrote: > On Thu, Apr 14, 2016 at 03:34:40PM

(52) Empty reply from server

2016-04-14 Thread Pankaj Chaudhary
Hi All, i am trying to set value in header with the help of below code snippet . ngx_table_elt_t *h1; h1 = ngx_list_push(&r->headers_out.headers); h1->hash = 1; ngx_str_set(&h1->key, "http_user_agent"); ngx_str_set(&h1->value, "user_agent_value"); if i try to retrieve the same value then

reading cookie

2016-04-11 Thread Pankaj Chaudhary
Hi, My name is Pankaj and i am new to this list. I would like to know how i can set cookie value and get cookie value. Please let me know is any module already written to do this. Regards, Pankaj ___ nginx mailing list nginx@nginx.org http://mailman.ng

cookie issue

2016-04-10 Thread Pankaj Chaudhary
ngx_http_get_variable() API to get cookie value but not getting any value. Please help me on this and let me know is any other API which I can use for the same. Thanks & Regards, Pankaj Chaudhary ___ nginx mailing list nginx@nginx.org http://mailman.nginx

cookie issue

2016-04-10 Thread Pankaj Chaudhary
ngx_http_get_variable() API to get cookie value but not getting any value. Please help me on this and let me know is any other API which I can use for the same. Thanks & Regards, Pankaj Chaudhary ___ nginx mailing list nginx@nginx.org http://mailman.nginx

Regarding development nginx module

2016-04-07 Thread Pankaj Chaudhary
ngx_http_get_variable() API to get cookie value but not getting any value. Please help me on this and let me know is any other API which I can use for the same. Thanks & Regards, Pankaj Chaudhary ___ nginx mailing list nginx@nginx.org http://mailman.nginx