# Read get variable

**URL:** <https://www.ruby-forum.com/t/read-get-variable/193127>\
**Category:** NGINX\
**Created:** [August 11, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/read-get-variable/193127 "2010-08-11T20:08:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bdfy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/6bbea6/32.png) [@Bdfy](https://www.ruby-forum.com/u/Bdfy)\
**Post date:** [August 11, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/read-get-variable/193127/1 "2010-08-11T20:08:40Z")

</div>

I want to write a simple nginx module. I need to read the variable from  
the GET request ( for example “?name=test” ).  
How to do it more “nice” ?

Posted at Nginx Forum:

> **[read get variable \[h\]](https://forum.nginx.org/read.php?2,118790,118790#msg-118790)**
>
> I want to write a simple nginx module. I need to read the variable from the GET request ( for example "?name=test" ). How to do it more "nice" ?

---

<div class="post-metadata">

**Author:** ![Bdfy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/6bbea6/32.png) [@Bdfy](https://www.ruby-forum.com/u/Bdfy)\
**Post date:** [August 11, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/read-get-variable/193127/2 "2010-08-11T21:12:29Z")

</div>

Hello!

On Wed, Aug 11, 2010 at 02:08:02PM -0400, Bdfy wrote:

> I want to write a simple nginx module. I need to read the variable from  
> the GET request ( for example “?name=test” ).  
> How to do it more “nice” ?

ngx\_http\_arg()

Maxim D.
