# Regarding development nginx module

**URL:** <https://www.ruby-forum.com/t/regarding-development-nginx-module/244420>\
**Category:** NGINX\
**Created:** [April 7, 2016, 1:49pm UTC](https://www.ruby-forum.com/t/regarding-development-nginx-module/244420 "2016-04-07T13:49:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [April 7, 2016, 1:49pm UTC](https://www.ruby-forum.com/t/regarding-development-nginx-module/244420/1 "2016-04-07T13:49:03Z")

</div>

Hi,

This is Pankaj,I am trying to write a module which is capable to access  
header value and set header and reading cookie and setting cookie.  
if i refer apache module then found apr\_table\_get() and apr\_table\_set()  
APIs are available to get/set header/cookie values.  
I have tried to use 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
