title: As I can intercept a TCP packet in real time?
body: <p>Hello that such I need your help
  I happen to intercept all TCP packets that are sent by filtering my team, I want to modify a http header that includes the host "example.com" and replace "localhost".</p>
  
  <p>They know of any example in C#?  Thank you</p>
  
  <p>For example the following header</p>
  
  <pre><code>GET / tutorials / other / top-20-mysql-best-practices / HTTP / 1.1
  Host: www.example.com
  User-Agent: App 2.0
  Accept: text / html, application / xhtml + xml, application / xml; q = 0.9, * / *; q = 0.8
  Accept-Language: en-us, en; q = 0.5
  Accept-Encoding: gzip, deflate
  </code></pre>
  
  <p>Replace with:</p>
  
  <pre><code>GET / tutorials / other / top-20-mysql-best-practices / HTTP / 1.1
  Host: localhost
  User-Agent: App 2.0
  Accept: text / html, application / xhtml + xml, application / xml; q = 0.9, * / *; q = 0.8
  Accept-Language: en-us, en; q = 0.5
  Accept-Encoding: gzip, deflate
  </code></pre>