[Prev][Next][Index][Thread]
"GET xxx HTTP/1.1" and NCSA/1.5.1 server (wwwlib 4.1b1)
There is a problem with WWWLIB 4.1b1 and NCSA/1.5.1 (maybe other
versions too, but at least with this). When WWWLIB sends a request
with HTTP/1.1, then NCSA server replies with "HTTP 200 ..." (instead
of "HTTP/1.0 200 ..").
>telnet www.funet.fi 80
Trying 128.214.248.6 ...
Connected to nic.funet.fi.
Escape character is '^]'.
GET / HTTP/1.1
HTTP 200 Document follows
Date: Wed, 07 Aug 1996 11:15:43 GMT
Server: NCSA/1.5.1
Last-modified: Thu, 27 Jun 1996 16:40:50 GMT
Content-type: text/html
Content-length: 2346
<HTML>
<HEAD>
...
The problem comes from Library/HTTP.c, which tests the reply with
...
if (strncasecomp(me->buffer, "http/", 5)) {
int status;
...
and this doesn't match with the "HTTP 200 .." :-(
The NCSA responce may not be HTTP/1.0 conformant, but perhaps the
WWWLIB should allow plain "HTTP " and assume HTTP/1.0 in such case?
--
Markku Savela (msa@hemuli.tte.vtt.fi), Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,http://www.vtt.fi/tte/staff/msa/
Follow-Ups: