[
https://issues.apache.org/jira/browse/HTTPCLIENT-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535396#comment-13535396
]
Nicolas Richeton commented on HTTPCLIENT-1282:
----------------------------------------------
Code is in org.apache.http.impl.client.DefaultRequestDirector#execute()
// HTTPCLIENT-1092 - add the port if necessary
if (virtualHost != null && virtualHost.getPort() == -1) {
int port = target.getPort();
if (port != -1){
virtualHost = new HttpHost(virtualHost.getHostName(), port,
virtualHost.getSchemeName());
}
}
> When using Virtual host, there is no way to use the default port
> ----------------------------------------------------------------
>
> Key: HTTPCLIENT-1282
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1282
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Affects Versions: 4.2.2, 4.2.3
> Reporter: Nicolas Richeton
>
> The following change automatically adds a port to the provided virtual host :
> https://issues.apache.org/jira/browse/HTTPCLIENT-1092
> This is an issue, because you can no longer use a virtual host with default
> port, but web applications often fixes urls by redirecting to the canonical
> url (which does not include port). It makes impossible to reach page content
> as we are getting only redirects.
> This would need to revert this update.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]