URL:
  <http://savannah.gnu.org/bugs/?39780>

                 Summary: Wget omits Host header for CONNECT (RFC 2616)
                 Project: GNU Wget
            Submitted by: nok
            Submitted on: Di 13 Aug 2013 16:09:26 CEST
                Category: Protocol Issue
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: trunk
        Operating System: GNU/Linux
         Reproducibility: Every Time
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: Yes

    _______________________________________________________

Details:

Hello,

reported to the Debian bug tracker http://bugs.debian.org/699337 and discussed
on the wget mailinglist
https://lists.gnu.org/archive/html/bug-wget/2013-01/msg00019.html
But the patch from Pavel wasn't applied at that time.

Maybe it could be added.

Inline and attached:

--- a/src/http.c        2011-09-07 12:58:01.000000000 +0200
+++ a/src/http.c        2013-01-30 13:32:42.000000000 +0100
@@ -1847,10 +1847,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);
           request_free (connreq);




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Di 13 Aug 2013 16:09:26 CEST  Name: connect-host-header  Size: 722B  
By: nok
connect-host-header.patch
<http://savannah.gnu.org/bugs/download.php?file_id=28833>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39780>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to