From owner-cvs-all@FreeBSD.ORG Fri Jul 16 09:02:47 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB9C616A4CE; Fri, 16 Jul 2004 09:02:47 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3EC843D3F; Fri, 16 Jul 2004 09:02:47 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6G92lWL092106; Fri, 16 Jul 2004 09:02:47 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6G92lTo092105; Fri, 16 Jul 2004 09:02:47 GMT (envelope-from yar) Message-Id: <200407160902.i6G92lTo092105@repoman.freebsd.org> From: Yar Tikhiy Date: Fri, 16 Jul 2004 09:02:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/usr.bin/ftp fetch.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 09:02:47 -0000 yar 2004-07-16 09:02:47 UTC FreeBSD src repository Modified files: (Branch: RELENG_4) usr.bin/ftp fetch.c Log: Stop pretending we support full-blown HTTP/1.1 because we are not ready to handle all its aspects. Failure to deal with HTTP/1.1, with chunked transfer encoding in particular, led to broken transfers and data corruption. Fall back to using HTTP/1.0, which is safe. A point to note: While the "Host:" header had not been in the original HTTP/1.0 standard, it became a de-facto standard for HTTP/1.0 as well. It is understood by servers in HTTP/1.0 sessions if supported at all. This issue doesn't apply to CURRENT since lukemftp handles HTTP/1.1 correctly. PR: bin/68547 Reviewed by: vs Revision Changes Path 1.12.2.7 +1 -1 src/usr.bin/ftp/fetch.c