httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] incompleted downloaded file
Date Fri, 20 Sep 2002 14:44:00 GMT
Leon Do wrote:
> Boyle Owen wrote:
>>Something like this came up a while ago in relation to large PDF files. This is the
start of the thread:
>>There was a discussion about the fact that you do indeed get a 200 response in the
header - so it does really come before the data. i.e. the 200 means "I found the file and
you are authorised to receive it so here it comes..." If it subsequently fails in transit,
you don't get any notification (it's not a handshake).
> How do I ensure data is right if I  receive 200 OK code?

As Owen says, since the status code is sent at the beginning of the 
response, there is no way to tell at that point if the response will be 
completely sent.  From the client side, you can check if you received 
the complete response by comparing the response length to the content 
length (or by verifying correct chunks in HTTP/1.1).


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message