# Edit HTTP response from command line

**URL:** <https://discourse.mitmproxy.org/t/edit-http-response-from-command-line/667>\
**Category:** help\
**Created:** [October 23, 2017, 6:30pm UTC](https://discourse.mitmproxy.org/t/edit-http-response-from-command-line/667 "2017-10-23T18:30:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![George](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@George](https://discourse.mitmproxy.org/u/George)\
**Post date:** [October 23, 2017, 6:30pm UTC](https://discourse.mitmproxy.org/t/edit-http-response-from-command-line/667/1 "2017-10-23T18:30:04Z")

</div>

Hello everyone,

I have been experimenting with mimtproxy and mitmdump trying to replace or modify http response to 301 to redirect the request to another domain, I know this is possible using the a script but I was just wondering is it possible to do that from the command line?
