hurl/integration/tests_ok/proxy.html
2022-11-11 14:25:00 +01:00

11 lines
882 B
HTML

<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"></span><span class="comment"># Go through proxy</span>
<span class="line"></span><span class="comment"># The proxy adds header "From-Proxy:Hello" for both request and response</span>
<span class="line"></span><span class="comment"># mitmproxy -p 8888 --setheader ":~q:From-Proxy:Hello" --setheader ":~s:From-Proxy:Hello"</span>
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/proxy</span></span>
</span><span class="response"><span class="line"></span>
<span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
<span class="line"><span class="string">From-Proxy</span><span>:</span> <span class="string">Hello</span></span>
</span></span><span class="line"></span>
<span class="line"></span>
</code></pre>