Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2000 16:03:48 +0200 (CEST)
From:      Ronald Klop <ronald@klop.yi.org>
To:        Mike Tancsa <mike@sentex.net>
Cc:        Dag-Erling Smorgrav <des@flood.ping.uio.no>, freebsd-stable@FreeBSD.ORG
Subject:   Re: is fetch broken?
Message-ID:  <Pine.BSF.4.21.0008011559060.811-100000@dlanor.evertsen.nl>
In-Reply-To: <4.3.2.7.0.20000801092010.04782d70@marble.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It appears to me that fetch doesn't handle answers well if there isn't a
content-length given by the server.

On Tue, 1 Aug 2000, Mike Tancsa wrote:

> At 01:04 PM 8/1/00 +0200, Dag-Erling Smorgrav wrote:
> >Please provide revision numbers or checkout dates for working /
> >non-working versions.
> 
> working
> $FreeBSD: src/usr.bin/fetch/http.c,v 1.31 2000/03/08 13:02:10 cracauer Exp $
>  From July 14th
> 
> non working
> $FreeBSD: src/usr.bin/fetch/fetch.c,v 1.10.2.6 2000/07/26 07:56:16 des Exp $
> July 28th
> 
> 
> >If at all possible, rebuild libfetch with DEBUG defined (see
> >instructions below) and mail me the output of failed transfers.
> 
> newmail# fetch http://www.netscape.com/index.html
> scheme:   [http]
> user:     []
> password: []
> host:     [www.netscape.com]
> port:     [0]
> document: [/index.html]
> ---> www.netscape.com:80
>  >>> GET /index.html HTTP/1.1
>  >>> Host: www.netscape.com
>  >>> User-Agent: fetch libfetch/2.0
>  >>> Connection: close
>  >>>
> <<< HTTP/1.1 200 OK
> <<< Server: Netscape-Enterprise/4.1
> <<< Date: Tue, 01 Aug 2000 13:28:19 GMT
> <<< Set-Cookie: 
> UIDC=207.245.238.163:0965136499:466110;domain=.netscape.com;path=/;expires=31-Dec-2010 
> 23:59:59 GMT
> <<< Content-type: text/html
> <<< Connection: close
> <<<
> offset: 0, length: -1, size: -1, clength: -1
> Receiving index.html (4294967295 bytes): 0%
> 45088 bytes transferred in 0.8 seconds (53.11 kBps)
> fetch: index.html appears to be truncated: 45088/4294967295 bytes
> 
> newmail# fetch http://www.sentex.net/index.html
> scheme:   [http]
> user:     []
> password: []
> host:     [www.sentex.net]
> port:     [0]
> document: [/index.html]
> ---> www.sentex.net:80
>  >>> GET /index.html HTTP/1.1
>  >>> Host: www.sentex.net
>  >>> User-Agent: fetch libfetch/2.0
>  >>> Connection: close
>  >>>
> <<< HTTP/1.1 200 OK
> <<< Date: Tue, 01 Aug 2000 13:28:30 GMT
> <<< Server: Apache/1.3.9 (Unix)
> <<< Connection: close
> <<< Transfer-Encoding: chunked
> <<< Content-Type: text/html
> <<<
> offset: 0, length: -1, size: -1, clength: -1
> Receiving index.html (4294967295 bytes): 0%<<< cff
> _http_fillbuf(): new chunk: 3327 (3327)
> <<< 0
> _http_fillbuf(): end of last chunk
> Receiving index.html (4294967295 bytes): 0%
> 3327 bytes transferred in 0.1 seconds (34.10 kBps)
> fetch: index.html appears to be truncated: 3327/4294967295 bytes
> newmail#
> 
> and one that works for some reason
> 
> newmail#  fetch http://www.microsoft.com/default.htm
> scheme:   [http]
> user:     []
> password: []
> host:     [www.microsoft.com]
> port:     [0]
> document: [/default.htm]
> ---> www.microsoft.com:80
>  >>> GET /default.htm HTTP/1.1
>  >>> Host: www.microsoft.com
>  >>> User-Agent: fetch libfetch/2.0
>  >>> Connection: close
>  >>>
> <<< HTTP/1.1 200 OK
> <<< Server: Microsoft-IIS/5.0
> <<< Connection: close
> <<< Date: Tue, 01 Aug 2000 13:28:50 GMT
> <<< Content-Type: text/html
> <<< Accept-Ranges: bytes
> <<< Last-Modified: Mon, 31 Jul 2000 18:09:33 GMT
> last modified: [2000-07-31 18:09:33]
> <<< ETag: "f4cbbb7a1afbbf1:87e"
> <<< Content-Length: 15957
> content length: [15957]
> <<<
> offset: 0, length: -1, size: -1, clength: 15957
> Receiving default.htm (15957 bytes): 100%
> 15957 bytes transferred in 0.3 seconds (48.24 kBps)
> 
> 
> ------------------------------------------------------------------------
> Mike Tancsa,                                      tel +1 519 651 3400
> Sentex Communications                             mike@sentex.net
> Cambridge, Ontario Canada                         www.sentex.net
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
> 

- -- 
Ronald Klop                                        http://klop.yi.org/
http://www.FreeBSD.org/                    http://klop.yi.org/~ronald/
PGP: http://klop.yi.org/~ronald/pgp.txt
     mailto:ronald@klop.yi.org?Subject=publicpgpkey

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBOYbYyRk9lWSXChWeEQIMmgCgh2kurrp7NM4UoRyMgKb/wP7IeU0AoL0K
P3tvOSHAVPBIgJ9fyWtV+TA+
=bAOF
-----END PGP SIGNATURE-----



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008011559060.811-100000>