hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1092) ClientPNames.VIRTUAL_HOST is used as is; if not provided, the port should be derived from the target URL
Date Wed, 18 May 2011 10:09:47 GMT
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message