Capturing HTTP traffic on fly in VB.NET
I am making an application in VB.NET that will capture HTTP messages from the client's broswer, analyze them and then the requested page will be displayed in the client's browser. I changed the proxy settings of Internet Explorer to some port (8080) and then listen to that port in my application using HTTPListener class. by doing so I captured the HTTP mesages using HTTPListenerRequest object and i can analyze it. But i am facing problems in sending the response back to the internet explorer. I used WebRequest and WebResposne class and through streamreaders i can send only text data to the web browser hardly. it gives errors often. Can any one suggest some better method, and also how to send images.