A bug reported on the debian package. He's got a point:

On Thu 14 Mar 2002, Thorsten Gunkel wrote:

> Package: wwwoffle
> Version: 2.7-1
> 
> | $ export http_proxy="http://localhost:8080/";
> | $ wget www.debian.org
> | --10:24:00--  http://www.debian.org:80/
> |            => `index.html.1'
> | Connecting to localhost:8080... connected!
> | Proxy request sent, awaiting response... 200 OK
> | Length: unspecified [text/html]
>   ^^^^^^^^^^^^^^^^^^^
> |
> |     0K -> .......... ....
> |
> | 10:24:03 (5.09 KB/s) - `index.html.1' saved [14535]
> 
> But afterwards:
> 
> | $ wget www.debian.org
> | --10:24:13--  http://www.debian.org:80/
> |            => `index.html.2'
> | Connecting to localhost:8080... connected!
> | Proxy request sent, awaiting response... 200 OK
> | Length: 14,535 [text/html]
>   ^^^^^^^^^^^^^^

I've verified that wwwoffle doesn't report the length if the object's
not in the cache; first time it's not in the cache, second time it is.

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD http://www.debian.org/ HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 14 Mar 2002 14:32:04 GMT
Server: Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1
Content-Location: index.en.html
Vary: negotiate,accept-language
TCN: choice
Cache-Control: max-age=86400
Expires: Fri, 15 Mar 2002 14:32:04 GMT
Last-Modified: Tue, 12 Mar 2002 12:31:20 GMT
ETag: "2353ad-38c7-3c8df518;3c8ff16f"
Accept-Ranges: bytes
Content-Type: text/html
Content-Language: en
Connection: close
Proxy-Connection: close

----------------------------------------------------------------------

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD http://www.debian.org/ HTTP/1.0

HTTP/1.0 200 OK
Date: Thu, 14 Mar 2002 14:32:04 GMT
Server: Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1
Content-Location: index.en.html
Vary: negotiate,accept-language
TCN: choice
Cache-Control: max-age=86400
Expires: Fri, 15 Mar 2002 14:32:04 GMT
Last-Modified: Tue, 12 Mar 2002 12:31:20 GMT
ETag: "2353ad-38c7-3c8df518;3c8ff16f"
Accept-Ranges: bytes
Content-Type: text/html
Content-Language: en
Content-Length: 14534
Connection: close
Proxy-Connection: close

Connection closed by foreign host.

----------------------------------------------------------------------

This is unexpected, I'd say. Of course the Length header is not a
compulsory header, but it's useful to see whether the object you're
trying to download is 100k or 10000k.


Paul Slootman

Reply via email to