Search the web
Sign In
New User? Sign Up
http-compliance · discussion about HTTP compliance testing and tests
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: How do browsers detect end of response when no Content-Length h   Message List  
Reply | Forward Message #46 of 117 |

In HTTP/1.1, the response could be sent with "Transfer-Encoding: chunked"
in which case a zero-length chunk (possibly followed by a trailer)
terminates the response. If there is no content length or chunked
transfer-coding, the server must terminate the response by closing the
connection. In HTTP/TCP/IP, the response could certainly be sent in
multiple IP packets.

-Carl




"Karr, David"
<david.karr@cach To:
"'http-compliance@yahoogroups.com'" <http-compliance@yahoogroups.com>
eflow.com> cc:
Subject: [http-compliance] How
do browsers detect end of response when no
10/04/2001 12:40 Content-Length hea der is
present?
PM
Please respond
to
http-compliance






How do browsers figure out a response is "Complete" if the origin server
doesn't send a "Content-Length" header? What is the normal strategy for
that? The response could be sent in more than one packet, correct?


To unsubscribe from this group, send an email to:
http-compliance-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/









Thu Oct 4, 2001 7:26 pm

kugler@...
Send Email Send Email

Forward
Message #46 of 117 |
Expand Messages Author Sort by Date

In HTTP/1.1, the response could be sent with "Transfer-Encoding: chunked" in which case a zero-length chunk (possibly followed by a trailer) terminates the...
Carl Kugler
kugler@...
Send Email
Oct 4, 2001
7:27 pm

I would also add that the server must terminate the connection nicely (e.g.., a FIN/ACK in TCP). Any other kind of termination should be regarded as an...
Hu, James
jxh@...
Send Email
Oct 4, 2001
7:46 pm

see: http://lxr.mozilla.org/seamonkey/source/netwerk/protocol/http/src/nsHttpTransaction.cpp#547 for the code used by mozilla to detect EOF. darin...
darin@...
Send Email
Oct 4, 2001
8:11 pm

Typically browsers would detect a complete response (or EOF) based on the content-length header. If that is not present the chunked transfer encoding header is...
gagan@...
Send Email
Oct 5, 2001
7:10 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help