# Target all sub urls too in send\_reply\_from\_proxy.py example

**URL:** <https://discourse.mitmproxy.org/t/target-all-sub-urls-too-in-send-reply-from-proxy-py-example/502>\
**Category:** help\
**Created:** [May 30, 2017, 6:54am UTC](https://discourse.mitmproxy.org/t/target-all-sub-urls-too-in-send-reply-from-proxy-py-example/502 "2017-05-30T06:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/karu/32/234_2.png) [@Karu](https://discourse.mitmproxy.org/u/Karu)\
**Post date:** [May 30, 2017, 6:54am UTC](https://discourse.mitmproxy.org/t/target-all-sub-urls-too-in-send-reply-from-proxy-py-example/502/1 "2017-05-30T06:54:06Z")

</div>

In mitmproxy examples send\_reply\_from\_proxy.py, I can target only specific url, but how could I widen it to all sub urls too?

Example: It makes no difference if I go to [http://example.com/path](http://example.com/path) or [http://example.com](http://example.com). Mitmproxy gives same response that is written in .py file to both requests.

---

<div class="post-metadata">

**Author:** ![Karu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/karu/32/234_2.png) [@Karu](https://discourse.mitmproxy.org/u/Karu)\
**Post date:** [May 30, 2017, 7:57am UTC](https://discourse.mitmproxy.org/t/target-all-sub-urls-too-in-send-reply-from-proxy-py-example/502/2 "2017-05-30T07:57:55Z")

</div>

I already found the solution. Sorry I am new in mitmproxy scripting.
