ClientPNames.VIRTUAL_HOST is used as is; if not provided, the port should be 
derived from the target URL
--------------------------------------------------------------------------------------------------------

                 Key: HTTPCLIENT-1092
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1092
             Project: HttpComponents HttpClient
          Issue Type: Improvement
          Components: HttpClient
    Affects Versions: 4.1.1
            Reporter: Sebb


The parameter ClientPNames.VIRTUAL_HOST allows the default Host header to be 
overridden.

Currently the code uses the HttpHost entry as provided, and does not 
automatically add the port suffix.
This means that user code has to provide the port - but only if it's not the 
default for the protocol.

It would be simpler for the user if the port were automatically added.

If the user does not provide the port, the code should derive it from the 
target URL.

If the user does provide a port number, then that should be used (as is done 
currently). 
This allows the user to override the port (if that should ever prove necessary).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to