From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 15 00:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3B1A31B for ; Sun, 15 Sep 2013 00:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 821DB2387 for ; Sun, 15 Sep 2013 00:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8F0A0tw024278 for ; Sun, 15 Sep 2013 00:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8F0A06O024277; Sun, 15 Sep 2013 00:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 15 Sep 2013 00:10:00 GMT Resent-Message-Id: <201309150010.r8F0A06O024277@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kimo Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7D66DDC8 for ; Sun, 15 Sep 2013 00:02:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6A30B2326 for ; Sun, 15 Sep 2013 00:02:17 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8F02HbY057522 for ; Sun, 15 Sep 2013 00:02:17 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8F02HOo057520; Sun, 15 Sep 2013 00:02:17 GMT (envelope-from nobody) Message-Id: <201309150002.r8F02HOo057520@oldred.freebsd.org> Date: Sun, 15 Sep 2013 00:02:17 GMT From: Kimo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182104: [PATCH] ftp/wget - Host header required by some proxies for HTTPS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 00:10:00 -0000 >Number: 182104 >Category: ports >Synopsis: [PATCH] ftp/wget - Host header required by some proxies for HTTPS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 15 00:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Kimo >Release: >Organization: >Environment: >Description: Some proxies enforce the Host header requirement of RFC 2616 14.23. This patch sends the Host header when connecting via a proxy. Upstream is http://savannah.gnu.org/bugs/?39780 >How-To-Repeat: >Fix: Patch attached with submission follows: Index: files/patch-src__http.c =================================================================== --- files/patch-src__http.c (revision 0) +++ files/patch-src__http.c (revision 16939) @@ -0,0 +1,16 @@ +--- ./src/http.c.orig 2013-08-20 20:25:43.000000000 +0000 ++++ ./src/http.c 2013-08-20 20:27:49.000000000 +0000 +@@ -2020,10 +2020,9 @@ + the regular request below. */ + proxyauth = NULL; + } +- /* Examples in rfc2817 use the Host header in CONNECT +- requests. I don't see how that gains anything, given +- that the contents of Host would be exactly the same as +- the contents of CONNECT. */ ++ request_set_header (connreq, "Host", ++ aprintf ("%s:%d", u->host, u->port), ++ rel_value); + + write_error = request_send (connreq, sock, 0); + request_free (connreq); Index: Makefile =================================================================== --- Makefile (revision 16938) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= wget DISTVERSION= 1.14 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ftp www ipv6 MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= wget >Release-Note: >Audit-Trail: >Unformatted: