I'm experiencing some strange behavior when I set a keep-alive 
HeaderRequest to download a file: at the end of the downloading process 
the PageReceived event may not get triggered.

For instance, dowloading Thunderbird, the pageReceived event is 
triggered, but downloading GoogleEarth it is not triggered.

The code I use is the following:

theSocket.setRequestHeader("Connection", "keep-alive")
theSocket.SetRequestHeader("User-Agent", mAgent)
theSocket.SetRequestHeader ("Accept", "*/*")
theSocket.SetRequestHeader("Accept-Encoding", "gzip, deflate;1=1.0")
pSt = "bytes=" + format(mPartialSize, "#") + "-"
theSocket.SetRequestHeader("Range",pSt)
theSocket.Get(mURL)

At present I commented the keep-alive request; but I would like to know 
how to deal properly whith such request; in fact I would hate using a 
timer to close the socket when the bytesReceived are more than the 
fileLength.

Any suggestion welcome.

RB 5.5.5  Mac OS 10.4.5

Thanks,

Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to