hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Richeton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1282) When using Virtual host, there is no way to use the default port
Date Wed, 19 Dec 2012 11:31:15 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535885#comment-13535885

Nicolas Richeton commented on HTTPCLIENT-1282:

On HTTPCLIENT-1092, it seems like a convention for creating HttpHost more easily, but in the
other side this convention does not work for all use cases. 

Basically, our usecase is a reverse proxy : we have a single target host defined (localhost
or a remote IP), we receive requests and forward the Host header included in requests to requests
made using HttpClient. 

If virtual host parameter is removed, we could add a Host header directly (we were doing this
before) BUT this interact with cookie management as HttpClient only uses target host and virtual
host parameter to validate cookie domain and not the Host header. As a result cookies get
discarded because domains don't match. 

In that case, maybe we could let the existing code untouched in 4.2.X (and not use it until
it disappears) and fix cookie validation using the Host parameter ?


> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message