From owner-freebsd-ports Sat May 20 18:50: 5 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D2CDE37B7F3 for ; Sat, 20 May 2000 18:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA03709; Sat, 20 May 2000 18:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from ice.42.org (ice.42.org [194.246.250.222]) by hub.freebsd.org (Postfix) with ESMTP id 7C50C37B7F3 for ; Sat, 20 May 2000 18:48:06 -0700 (PDT) (envelope-from sec@ice.42.org) Received: (from sec@localhost) by ice.42.org (8.9.3/8.9.3) id DAA92327; Sun, 21 May 2000 03:48:00 +0200 (CEST) (envelope-from sec) Message-Id: <200005210148.DAA92327@ice.42.org> Date: Sun, 21 May 2000 03:48:00 +0200 (CEST) From: sec@42.org Reply-To: sec@ice.42.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/18698: webcopy port doesn't speak http/1.1 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18698 >Category: ports >Synopsis: webcopy port doesn't speak http/1.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 20 18:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Stefan `Sec` Zehl >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: /usr/ports/www/webcopy 0.98b7 installed >Description: webcopy doesn't send a 'Host:'-Header and thus fails to talk to http-1.1 vhosts. >How-To-Repeat: >Fix: Apply this patch: --- /usr/local/bin/webcopy Tue Sep 16 22:45:49 1997 +++ webcopy.11 Thu Sep 3 22:05:55 1998 @@ -474,7 +474,7 @@ $_=select(S); $|=1; select($_); if ($verbose>3) { print(($post?"POST":"GET") . " $proxy$url HTTP/1.0${rn}" . - "User-Agent: $agent${rn}Accept: */*${rn}$update"); + "User-Agent: $agent${rn}Accept: */*${rn}Host: ${host}${rn}$update"); print "Authorization: $userpass${rn}" if $userpass; if ($post) { print "Content-Length: " . length($post_data) . @@ -485,7 +485,7 @@ } } print S ($post?"POST":"GET") . " $proxy$url HTTP/1.0${rn}" . - "User-Agent: $agent${rn}Accept: */*${rn}$update"; + "User-Agent: $agent${rn}Accept: */*${rn}Host: ${host}${rn}$update"; print S "Authorization: $userpass${rn}" if $userpass; if ($post) { print S "Content-Length: " . length($post_data) . >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message