hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shalin singh (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (HTTPCLIENT-853) Wrong cookie matching port number reported when using a proxy
Date Fri, 27 May 2011 08:55:47 GMT

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

shalin singh edited comment on HTTPCLIENT-853 at 5/27/11 8:54 AM:
------------------------------------------------------------------

Thanks for the fix Oleg

[java] 2009/05/28 19:58:23:398 CEST [DEBUG] RequestAddCookies - Cookie [version: 0][name:
ASPSESSIONIDCSARBQBA][value: MAMPAMKCBDJJFKNAAPKPMDAA][domain: www.seoconsultants.com][path:
/][expiry: null] match [www.holytraffic.com]

whereas it should be:

[java] 2009/05/28 19:57:46:667 CEST [DEBUG] RequestAddCookies - Cookie [version: 0][name:
ASPSESSIONIDCSARBQBA][value: AAMPAMKCMBINHNEHPFEBFADA][domain: www.seoconsultants.com][path:
/][expiry: null] match [www.4xindia.com]

i.e. the same as without using a proxy. 7295 is the port number used to access the proxy.
The target domain www.seoconsultants.com is accessed through the regular HTTP port number
80, thus the cookie matching should also refer to port 80 and not the proxy's port. 

      was (Author: shalin111):
    Thanks for the fix Oleg

[java] 2009/05/28 19:58:23:398 CEST [DEBUG] RequestAddCookies - Cookie [version: 0][name:
ASPSESSIONIDCSARBQBA][value: MAMPAMKCBDJJFKNAAPKPMDAA][domain: www.seoconsultants.com][path:
/][expiry: null] match [www.holytraffic.com]

whereas it should be:

[java] 2009/05/28 19:57:46:667 CEST [DEBUG] RequestAddCookies - Cookie [version: 0][name:
ASPSESSIONIDCSARBQBA][value: AAMPAMKCMBINHNEHPFEBFADA][domain: www.holytraffic.com][path:
/][expiry: null] match [www.seoconsultants.com:80/]

i.e. the same as without using a proxy. 7295 is the port number used to access the proxy.
The target domain www.seoconsultants.com is accessed through the regular HTTP port number
80, thus the cookie matching should also refer to port 80 and not the proxy's port. 
  
> Wrong cookie matching port number reported when using a proxy
> -------------------------------------------------------------
>
>                 Key: HTTPCLIENT-853
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-853
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient, HttpCookie
>    Affects Versions: 4.0 Beta 1, 4.0 Beta 2
>         Environment: Proxy: tinyproxy 1.6.4
>            Reporter: Charles Fr Rey
>             Fix For: 4.0 Final
>
>
> Following the example given in https://issues.apache.org/jira/browse/HTTPCLIENT-852 and
the route HttpRoute[{}->http://xyz.webfactional.com:7295->http://www.seoconsultants.com]:
> one of the new cookies is reported to be added as:
> [java] 2009/05/28 19:58:23:398 CEST [DEBUG] RequestAddCookies - Cookie [version: 0][name:
ASPSESSIONIDCSARBQBA][value: MAMPAMKCBDJJFKNAAPKPMDAA][domain: www.seoconsultants.com][path:
/][expiry: null] match [www.seoconsultants.com:7295/]
> whereas it should be:
> [java] 2009/05/28 19:57:46:667 CEST [DEBUG] RequestAddCookies - Cookie [version: 0][name:
ASPSESSIONIDCSARBQBA][value: AAMPAMKCMBINHNEHPFEBFADA][domain: www.seoconsultants.com][path:
/][expiry: null] match [www.seoconsultants.com:80/]
> i.e. the same as without using a proxy. 7295 is the port number used to access the proxy.
The target domain www.seoconsultants.com is accessed through the regular HTTP port number
80, thus the cookie matching should also refer to port 80 and not the proxy's port.

--
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