cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3487618 ] Host header omits port number

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 14 Feb 2012 10:09:23 -0800

Bugs item #3487618, was opened at 2012-02-14 08:47
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3487618&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: wrong content
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: legalize (legalize)
Assigned to: Daniel Stenberg (bagder)
Summary: Host header omits port number

Initial Comment:
The Host: header is supposed to include the port number when the port number is not port 80. When using a non-standard port, curl does not include the port number in the Host header, violating the HTTP RFC.

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-02-14 10:09

Message:
Thanks for your report and your desire to help us improve curl!

This is not a HTTP protocol violation, it is perfectly allowed by the spec
section 14.23. It is also the result of testing as lots of sites actually
break when the default port numbers are provided, or at least they did
years ago when curl did it unconditionally.

This entry is therefore closed as rejected.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3487618&group_id=976
Received on 2012-02-14

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET