Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2000 04:50:04 -0700 (PDT)
From:      Ruslan Ermilov <ru@sunbay.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/21476: ftp in 4.1-STABLE fails on http:// URLs
Message-ID:  <200009251150.EAA59979@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/21476; it has been noted by GNATS.

From: Ruslan Ermilov <ru@sunbay.com>
To: brett@lariat.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/21476: ftp in 4.1-STABLE fails on http:// URLs
Date: Mon, 25 Sep 2000 14:42:39 +0300

 On Fri, Sep 22, 2000 at 08:45:10AM -0700, brett@lariat.org wrote:
 > 
 > ftp utility fails to retrieve some (not all!) files via HTTP. 
 > A 404 error is reported. A memory error is also reported
 > after the failure.
 
 > %ftp http://www.ben-tech.com/projects/noattach.tar.gz
 > Requesting http://www.ben-tech.com/projects/noattach.tar.gz
 > ftp: Error retrieving file: 404 Not Found
 > 
 The server www.ben-tech.com is violating RFC1945 by requiring that
 the Host: header be present in any HTTP/1.0 request.  Compare:
 
 $ telnet www.ben-tech.com 80
 Trying 204.249.185.211...
 Connected to www.ben-tech.com.
 Escape character is '^]'.
 HEAD /projects/noattach.tar.gz HTTP/1.0
 
 HTTP/1.1 404 Not Found
 Date: Mon, 25 Sep 2000 11:03:01 GMT
 Server: Apache/1.3.12 Ben-SSL/1.39 (Unix)
 Connection: close
 Content-Type: text/html
 
 Connection closed by foreign host.
 
 ... and ...
 
 $ telnet www.ben-tech.com 80
 Trying 204.249.185.211...
 Connected to www.ben-tech.com.
 Escape character is '^]'.
 HEAD /projects/noattach.tar.gz HTTP/1.0
 Host: www.ben-tech.com
 
 HTTP/1.1 200 OK
 Date: Mon, 25 Sep 2000 11:30:21 GMT
 Server: Apache/1.3.12 Ben-SSL/1.39 (Unix)
 Last-Modified: Fri, 22 Sep 2000 15:10:25 GMT
 ETag: "3e003-665-39cb7661"
 Accept-Ranges: bytes
 Content-Length: 1637
 Connection: close
 Content-Type: application/x-tar
 Content-Encoding: x-gzip
 
 Connection closed by foreign host.
 
 
 > ftp in free(): warning: chunk is already free.
 > 
 This one I have fixed in src/usr.bin/ftp/fetch.c,v 1.15.
 
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009251150.EAA59979>