Replacing openstack
with mitmproxy
in request and reponse
python -m SimpleHTTPServer
mitmdump -dd -s "./replace.py openstack mitmproxy"
curl -s http://localhost:8000/openstack-logo.png --noproxy localhost |imgcat
curl -s http://localhost:8000/openstack-logo.png --proxy http://localhost:8080 |imgcat
curl -s http://localhost:8000/clouds.json --noproxy localhost |ack --passthru 'openstack|mitmproxy'
curl -s http://localhost:8000/clouds.json --proxy http://localhost:8080 |ack --passthru 'openstack|mitmproxy'
nova list
export http_proxy=localhost:8080
mitmdump -dd -s "multiply.py 5"
nova list