... I use a package in tcl which implements the client-side of the http protocol. The functionality works except for one url which keeps reporting a 404 - Not...
feit@...
Sep 20, 2001 1:59 pm
43
... You will always have erroneous or otherwise unexpected responses if you use real URLs. There are a lot of odd servers out there. There is no way around it....
Alex Rousskov
rousskov@...
Sep 20, 2001 3:03 pm
44
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...
Karr, David
david.karr@...
Oct 4, 2001 6:40 pm
45
... RFC 2616 defines browsers behavior in this case. There are several scenarios like Chunked Encoding and end-of-file/connection detection. See a lengthy...
Alex Rousskov
rousskov@...
Oct 4, 2001 7:01 pm
46
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@...
Oct 4, 2001 7:27 pm
47
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@...
Oct 4, 2001 7:46 pm
48
I started to read that earlier, but I missed the short "closing the connection" point. So, how exactly do you detect the closing of the connection? If you're ...
Karr, David
david.karr@...
Oct 4, 2001 7:48 pm
49
Typically, your select() will return that the socket is readable, and when you read, you will get back 0 bytes. This signals to you that the connection has...
Hu, James
jxh@...
Oct 4, 2001 7:52 pm
50
... You wait for the read(2) call on a socket to return zero bytes, indicating an end-of-file condition. Unfortunately, the situation is complicated by...
Alex Rousskov
rousskov@...
Oct 4, 2001 8:06 pm
51
... ... but only if the error number tells you so. Negative read size may simply mean that select(2) lied and no data is really available yet. This has very...
Alex Rousskov
rousskov@...
Oct 4, 2001 8:10 pm
52
... So after you've finished reading the last real block of data and get back to the "select" loop, the server will have closed the connection. At the ...
Karr, David
david.karr@...
Oct 4, 2001 8:10 pm
53
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@...
Oct 4, 2001 8:11 pm
54
... Right. There may be some negative-size reads in-between, of course. Select(2) indicates a change in fd "condition", not necessarily a "ready" state. If you...
Alex Rousskov
rousskov@...
Oct 4, 2001 8:16 pm
55
Of course, always check the error number. -- James ... http://docs.yahoo.com/info/terms/ ... To unsubscribe from this group, send an email to: ...
Hu, James
jxh@...
Oct 4, 2001 8:31 pm
56
This might also be useful for compliance testing. http://www-106.ibm.com/developerworks/library/j-load.html http://www.pushtotest.com/...
Carl Kugler
kugler@...
Oct 5, 2001 5:03 pm
57
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@...
Oct 5, 2001 7:10 pm
58
This is a stretch for here, but is anyone aware of any implementations of the SNMP WWW MIB using the "net-snmp" package, and if so, is the implementation...
Karr, David
david.karr@...
Oct 16, 2001 7:57 pm
59
Hello I am new to HTTP, and so please excuse me if this is a very basic question. Teh Http specification says that each HTTP header should be terminated by a ...
Aniruddha Shevade
ashevade@...
Oct 31, 2001 6:32 pm
60
... The answer seems to be in HTTP specs: message-header = field-name ":" [ field-value ] field-value = *( field-content | LWS ) field-content = <the...
Alex Rousskov
rousskov@...
Oct 31, 2001 6:54 pm
61
in my experiences, web servers often mix \r\n and \n line endings in the header section. as a result, it is common to ignore \r and only look for \n. darin...
darin@...
Oct 31, 2001 10:02 pm
62
... Yes, and doing so is explicitly recommended by HTTP: The line terminator for message-header fields is the sequence CRLF. However, we recommend that...
Alex Rousskov
rousskov@...
Oct 31, 2001 10:24 pm
63
Hi Just following a discussion, is there any place where I can get sample C++ code for parsing HTTP headers. Looks like handling all the possible cases is...
Aniruddha Shevade
ashevade@...
Oct 31, 2001 10:27 pm
64
Hello Is there any testing tool for checking the compliance of a HTTP server ? Any htlp is appreciated thanks -aniruddha...
Aniruddha Shevade
ashevade@...
Nov 5, 2001 12:10 am
65
The following paragraph in the HTTP 1.1 spec, the last paragraph in section 4.2, "Message Headers", talks about the possibility of having multiple headers with...
Karr, David
david.karr@...
Nov 20, 2001 6:03 pm
66
... It means that if a header (denoted by its filed-name) is defined to have a comma-separated list field-value, then that header may be repeated. For example,...
Alex Rousskov
rousskov@...
Nov 20, 2001 6:12 pm
67
Thanks. That helps. ... http://docs.yahoo.com/info/terms/...
Karr, David
david.karr@...
Nov 20, 2001 6:20 pm
68
Hello All, I m writing an application over http protocol. I have written client and server application but having one problem in two way communication. When...
Hi, I'm writing an HTTP 1.0 proxy (for fun). Things are going well except that when I refresh a page, IE 5 SP2 performs a GET with a If- None-Match header...
Hi, I'm writing an HTTP proxy (for fun) and was wondering about a response I got from an Apache web server ver 1.3.12. I presented a GET with HTTP/1.0 as the...
Only Proxy and Cache downgrade the HTTP version in the req. As long as the response has the same major version as that of the request, the response is RFC...