# Altering urlencoded form

**URL:** <https://discourse.mitmproxy.org/t/altering-urlencoded-form/520>\
**Category:** help\
**Created:** [June 20, 2017, 7:41am UTC](https://discourse.mitmproxy.org/t/altering-urlencoded-form/520 "2017-06-20T07:41:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![internety](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/internety/32/27_2.png) [@internety](https://discourse.mitmproxy.org/u/internety)\
**Post date:** [June 20, 2017, 7:41am UTC](https://discourse.mitmproxy.org/t/altering-urlencoded-form/520/1 "2017-06-20T07:41:12Z")

</div>

```
list_of_values = [1, 2, 3, 4, 5555]
for i in list_of_values:
    dup = ctx.duplicate_flow( flow )
    form = dup.request.urlencoded_form
    form["zoneID"] = [i]
    dup.request.urlencoded_form = form
    ctx.replay_request( dup )
    print "%%%", dup.request.urlencoded_form, i, dup.response.content

```

%%% [(‘TOKEN’, 1234’), (‘zoneID’, ‘548140’)] 1 same\_response.content\_each\_time  
%%% [(‘TOKEN’, 1234’), (‘zoneID’, ‘548140’)] 2 same\_response.content\_each\_time  
%%% [(‘TOKEN’, 1234’), (‘zoneID’, ‘548140’)] 3 same\_response.content\_each\_time  
%%% [(‘TOKEN’, 1234’), (‘zoneID’, ‘548140’)] 4 same\_response.content\_each\_time  
%%% [(‘TOKEN’, 1234’), (‘zoneID’, ‘548140’)] 5555 same\_response.content\_each\_time  
…

# mitmproxy --version

mitmproxy 0.17

any ideas?

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [June 20, 2017, 10:39am UTC](https://discourse.mitmproxy.org/t/altering-urlencoded-form/520/2 "2017-06-20T10:39:22Z")

</div>

> [@internety](#):
>
> mitmproxy 0.17

Please update to 2.0.x and try again.
