title: http socket proxy server
body: <p>i think you should make it like </p>
  
  <pre><code>Browser                            Proxy                     HTTP server
  send tcp request (header) &gt;---------|
                                     \|/
                                     read header
                                     redirect header &gt;---------|
                                                              \|/
                                                              do stuff
                                                              make header
   Get Header &lt;--------------------&lt; redirect header &lt;------&lt; send header
                                                              read content
                                                              morph content (like .php )
   Get content &lt;-------------------&lt; redirect content &lt;-----&lt; send content
  </code></pre>
  
  <p>i tried to make it like this but it didn't work out
  it was buggy and it only worked for one server </p>
  
  <p>i did it trying to open the program on other computers but to only accepted local host</p>
  
  <p>is this te correct way or do i need to change my view on this?</p>