<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Http on Pfft !</title><link>https://blogue.kalanso.top/tags/http/</link><description>Recent content in Http on Pfft !</description><generator>Hugo</generator><language>fr</language><lastBuildDate>Thu, 30 Nov 2023 20:37:30 +0000</lastBuildDate><atom:link href="https://blogue.kalanso.top/tags/http/index.xml" rel="self" type="application/rss+xml"/><item><title>Inspect web traffic:</title><link>https://blogue.kalanso.top/masto/2023-11-30-111501420174474022-inspect-web-traffic/</link><pubDate>Thu, 30 Nov 2023 20:37:30 +0000</pubDate><guid>https://blogue.kalanso.top/masto/2023-11-30-111501420174474022-inspect-web-traffic/</guid><description>&lt;p>Inspect web traffic:&lt;/p>
&lt;p>Terminal 1: Start your server&lt;/p>
&lt;blockquote>
&lt;p>./my-web-server -port 8080&lt;/p>&lt;/blockquote>
&lt;p>Terminal 2: Start netcat/tee &amp;ldquo;proxy&amp;rdquo;&lt;/p>
&lt;blockquote>
&lt;p>nc -lk 3000 | tee /dev/tty | nc localhost 8080&lt;/p>&lt;/blockquote>
&lt;p>Terminal 3: Send requests to &amp;ldquo;proxy&amp;rdquo;&lt;/p>
&lt;blockquote>
&lt;p>curl http://localhost:3000&lt;/p>&lt;/blockquote>
&lt;p>See raw HTTP requests/responses in Terminal 2 between client and server.&lt;/p>
&lt;p>That&amp;rsquo;s it. That&amp;rsquo;s the toot.&lt;/p>
&lt;p>#Linux #HTTP #TCP #Networking&lt;/p>
&lt;p>&lt;a href="https://blogue.kalanso.top/tags/linux/">&lt;code>#linux&lt;/code>&lt;/a>
 &lt;a href="https://blogue.kalanso.top/tags/http/">&lt;code>#http&lt;/code>&lt;/a>
 &lt;a href="https://blogue.kalanso.top/tags/tcp/">&lt;code>#tcp&lt;/code>&lt;/a>
 &lt;a href="https://blogue.kalanso.top/tags/networking/">&lt;code>#networking&lt;/code>&lt;/a>
&lt;/p></description></item></channel></rss>