I'm working on a proxy application; everything works find but ssl connections. here is what i'm doing and the problem description:
The proxy detects Connect request from browser and starts to relay ssl traffic to an external server and then receives the answer then sends the response directly to browser:
The request: Browser Ssl request <--> proxy application <--> external proxy server <--> remote website
I could implement ssl data relay (without touching any byte of it), but it only works for images and a few html pages.
I've checked the transferred data with Wireshark and Fiddler, they reports that all the traffic is sent ok and the data size was ok. But browser only displays direct request to images. (e.g: https://a.fsdn.com/sf/images/develop/logo.png)
Here is my guess about the issue:
I'm buffering all response/request traffic, when buffering is done the app sends it to proxy server/browser. After one full day investigation i realized that the browser only receives the very first part of request for html pages. In my opinion it receives
only first chunk of response (but the response in not sent in chunks!) this is what i guess though!
I'm using TcpListener for both Proxy App and Proxy Server.
Please help me through this; what should I do ? :(
View Complete Post