Very simple HTTP proxy

Just starting out? Need help? Post your questions and find answers here.
ADN2
New User
New User
Posts: 3
Joined: Thu Jan 17, 2008 10:24 pm

Post by ADN2 »

With Internet Explorer 7
http://www.purebasic.com/download/PureBasic_Demo.exe

The download stop at 97 %
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

I reproduced this, sort of.

with mine i get very close to the end and then it just stops. I needed to increase the buffer size a little though first.

I did sniff on the network and the whole file gets through and then the end isn't right. The Server sends the last packet and then the client should send an ACK and an ACK-FIN, then the server will ACK back and IE will know it's finished.

With the proxy, the client sends an ack and thats it so they both just sit there.

Generally this doesn't happen because theres more happening but with the download screen it wants to stop and drop the connection at the end.

Because the proxy doesn't get any info, just the ack etc it has nothing to send to the web server... (or something close to that)

I'll have a think about it. The proxy will have to do some sort of tidy up with the web server for propper closure.

I tested this about 10-15 times and it was the same, the end of the file looks like this (for this download) and it was getting there:

00 00 C6 00 00 1F 61 4A C4
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
codeman
User
User
Posts: 27
Joined: Thu Feb 19, 2009 7:12 am

Post by codeman »

Sorry! I find this interesting but what do this example? Waht must I do that I go with a proxy in the Web?

Yours codeman
Post Reply