# EventMachine with REST

**URL:** <https://www.ruby-forum.com/t/eventmachine-with-rest/175665>\
**Category:** Ruby\
**Created:** [September 17, 2009, 11:33am UTC](https://www.ruby-forum.com/t/eventmachine-with-rest/175665 "2009-09-17T11:33:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingston](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@kingston](https://www.ruby-forum.com/u/kingston)\
**Post date:** [September 17, 2009, 11:33am UTC](https://www.ruby-forum.com/t/eventmachine-with-rest/175665/1 "2009-09-17T11:33:09Z")

</div>

Hello  
I recently started working on Event Machine and its still the  
early days.

```
 I had started a service(a small server) running on port 8001 using
 Event Machine.

 Currently,I want to pass a given querystring with my given url i.e
 http://127.0.0.1:8001/multiquery.xml to the service.

 The final url look like this

```

[http://localhost:8001/multiquery.xml?name[]=First\_1&name[]=Second\_2&name[]=Third\_3](http://localhost:8001/multiquery.xml?name%5B%5D=First_1&name%5B%5D=Second_2&name%5B%5D=Third_3)

```
 Now,I want to access the query string they way we do using Rest API
 params[:name]
 ["First_1","Second_2",'Third_3']

 I know that Event Machine currenly has an instance variable called
 "@http_query_string" which will return the given query string for

```

the  
current request but it needed extra logic to been written to  
present  
the output as above(I might be wrong on this,I don’t know I am  
guessing).  
Is there a easy way to access the querystring just as the above

```
 I know it work coz i have implemented the above in sinatra

```

Any thought  
Thanks anyway
