Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
4.3.3
-
None
-
None
Description
When a HTTP request is made using HTTP components and the request url contains a default port (80 for http and 443 for https)
http://example.com:80/something
https://example.com:443/something
Seems like the host header is taken from the URL authority(host:port) part. There by the host header includes the ports 80 and 443. According to HTTP spec if no port is specified in the host header it defaults 80 or 443 (based on http or https).
When i am accessing maps.googleapi.com if the host header contains the default port 443 the server is rejecting the request. I understand that the server should accept such host headers. But still it will be good if we can trim out the default ports or at least provide a property to trim out default ports.