# Process response in real time

**URL:** <https://discourse.mitmproxy.org/t/process-response-in-real-time/1308>\
**Category:** help\
**Created:** [October 28, 2018, 9:18am UTC](https://discourse.mitmproxy.org/t/process-response-in-real-time/1308 "2018-10-28T09:18:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teddy8478](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/teddy8478/32/414_2.png) [@teddy8478](https://discourse.mitmproxy.org/u/teddy8478)\
**Post date:** [October 28, 2018, 9:18am UTC](https://discourse.mitmproxy.org/t/process-response-in-real-time/1308/1 "2018-10-28T09:18:42Z")

</div>

Hello,

I want to send requests that some fields depend on the previous response.  
Is it possible get the response and put some value in following request in real time?

Thanks

---

<div class="post-metadata">

**Author:** ![Gigiarum](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/gigiarum/32/278_2.png) [@Gigiarum](https://discourse.mitmproxy.org/u/Gigiarum)\
**Post date:** [November 2, 2018, 4:05pm UTC](https://discourse.mitmproxy.org/t/process-response-in-real-time/1308/2 "2018-11-02T16:05:16Z")

</div>

You can create new cookie in the first response and the next request will give you back.

---

<div class="post-metadata">

**Author:** ![teddy8478](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/teddy8478/32/414_2.png) [@teddy8478](https://discourse.mitmproxy.org/u/teddy8478)\
**Post date:** [November 2, 2018, 4:28pm UTC](https://discourse.mitmproxy.org/t/process-response-in-real-time/1308/3 "2018-11-02T16:28:51Z")

</div>

I have solved it with the response() function in addon.  
Process each response in response() and send next request.

I can share my code if anyone wants.  
Just let me know!
