title: netcat/socat as http intercept proxy
body: <p>i've heard that socat/netcat can be used as a proxy server which have an ability to redirect to another proxy server.</p>
  
  <p>but in my situation i want to "tricking" it a little bit with some http header manipulation.</p>
  
  <p>so my goal is using netcat/socat to act as localhost "http CONNECT" proxy server that has an ability to read &amp; rebuild the http request by the client then redirect it to external squid proxy server.</p>
  
  <p>after searching around for hours, i couldn't find any example how can i achive this.</p>
  
  <p>is it even possible ? if yes, then how? since i new to netcat/socat thing.</p>
  
  <p>Thank you.  </p>