hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1092) ClientPNames.VIRTUAL_HOST is used as is; if not provided, the port should be derived from the target URL
Date Fri, 20 May 2011 20:53:47 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved HTTPCLIENT-1092.
------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1.2

Fixed in 4.1 branch and trunk

> 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
>             Fix For: 4.1.2
>
>
> 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