Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 00:02:17 GMT
From:      Kimo <kimor79@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182104: [PATCH] ftp/wget - Host header required by some proxies for HTTPS
Message-ID:  <201309150002.r8F02HOo057520@oldred.freebsd.org>
Resent-Message-ID: <201309150010.r8F0A06O024277@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309150002.r8F02HOo057520>