mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
2 lines
854 B
HTML
2 lines
854 B
HTML
<div class="hurl-file"><div class="hurl-entry"><div class="request"><span class="line"><span class="comment"># Go through proxy</span></span><span class="line"><span class="comment"># The proxy adds header "From-Proxy:Hello" for both request and response</span></span><span class="line"><span class="comment"># mitmproxy -p 8888 --setheader ":~q:From-Proxy:Hello" --setheader ":~s:From-Proxy:Hello"</span></span><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/proxy</span></span></div><div class="response"><span class="line"></span><span class="line"><span class="version">HTTP/1.0</span> <span class="status">200</span></span><span class="line"><span class="string">From-Proxy</span><span>:</span> <span class="string">Hello</span></span></div></div><span class="line"></span><span class="line"></span></div>
|