Date: Sun, 21 May 2000 03:48:00 +0200 (CEST) From: sec@42.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/18698: webcopy port doesn't speak http/1.1 Message-ID: <200005210148.DAA92327@ice.42.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005210148.DAA92327>