on 5/16/07 8:10 PM, Carlo Rubini at [EMAIL PROTECTED] wrote:

> 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

Carlo,

>From this forum post, http://forums.realsoftware.com/viewtopic.php?t=11784,
RB doesn't support HTTP 1.1 and thus the keep-alive header.

Chris


_______________________________________________
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