ports/182104: [PATCH] ftp/wget - Host header required by some proxies for HTTPS
Kimo
kimor79 at yahoo.com
Sun Sep 15 00:10:00 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list