# Webdev module access request object key

**URL:** <https://forum.inductiveautomation.com/t/webdev-module-access-request-object-key/12690>\
**Category:** Ignition\
**Created:** [February 16, 2017, 10:50pm UTC](https://forum.inductiveautomation.com/t/webdev-module-access-request-object-key/12690 "2017-02-16T22:50:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adolfo.rafael.martin](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@adolfo.rafael.martin](https://forum.inductiveautomation.com/u/adolfo.rafael.martin)\
**Post date:** [February 16, 2017, 10:50pm UTC](https://forum.inductiveautomation.com/t/webdev-module-access-request-object-key/12690/1 "2017-02-16T22:50:24Z")

</div>

Hi;

In a webdev script that responds to a post i would like to access the params in the request object.

I use

logger = system.util.getLogger(“webdevPost”)  
logger.info(str(request.keys()))

and can see

[u’headers’, u’scheme’, u’remoteHost’, u’params’, u’servletRequest’, u’remainingPath’, u’servletResponse’, u’context’, u’remoteAddr’]

in the logs.

I’ve tried

request[‘params’]

but, the result is

{‘event\_1531f4ba-26d1-405e-bc63-f7b1b4bd4b26’: u’’}

How do I access request[‘params’] but only get

‘event\_1531f4ba-26d1-405e-bc63-f7b1b4bd4b26’?

---

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [February 16, 2017, 11:13pm UTC](https://forum.inductiveautomation.com/t/webdev-module-access-request-object-key/12690/2 "2017-02-16T23:13:23Z")

</div>

Can you include the full code section you’ve written for this?

Without seeing more detail my of the cuff guess is you need to use a for loop to iterate through the list that you get back when you request the params? Otherwise it’s displaying just the first element of the list.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 16, 2017, 11:30pm UTC](https://forum.inductiveautomation.com/t/webdev-module-access-request-object-key/12690/3 "2017-02-16T23:30:24Z")

</div>

request[‘params’] returns a dictionary; to get the keys use:

`for param in request['params'].keys():
	print 'key: %s' % param
	print 'value: %s' % request['params'][param]`
