From nobody@FreeBSD.org  Sun Sep 15 00:02:17 2013
Return-Path: <nobody@FreeBSD.org>
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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <kimor79@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] ftp/wget - Host header required by some proxies for HTTPS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182104
>Category:       ports
>Synopsis:       [PATCH] ftp/wget - Host header required by some proxies for HTTPS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vd
>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:  Sun Sep 15 00:10:08 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->vd 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Sep 15 00:10:07 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182104 
>Unformatted:
