You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Nuckles, Ed (GE Infra, Energy)" <ed...@ge.com> on 2007/01/29 16:48:48 UTC
blindly accept all cookies?
I'm using the latest version of HTTPClient. I'm getting an error back
from HttpMethodBase.processCookieHeaders "illegal domain attribute
".ge-energy.com". Domain of origin is <192....some local IP>" I know
exactly why this is happening. The webserver is giving out a cookie
with a different domain than its own because it expects the user to go
through a reverse proxy. However for debugging I am going around the
reverse proxy and need to blindly accept all the cookies. Is there a
way to do this?
thanks,
Ed Nuckles
General Electric
Re: blindly accept all cookies?
Posted by Ortwin Glück <od...@odi.ch>.
Ed,
I think it's useful to have support classes for debugging purposes. We
could integrate your implementation in the stock version of HttpClient
3.1 (and the future 4.0). Feel free to add a JIRA report at
http://issues.apache.org/jira/browse/HTTPCLIENT and attach your
implementation.
Ortwin
Nuckles, Ed (GE Infra, Energy) wrote:
> Thanks. I was hoping there was just a setting I was not aware of, but will do this way.
>
> Ed
>
> -----Original Message-----
> From: Ortwin Glück [mailto:odi@odi.ch]
> Sent: Monday, January 29, 2007 10:56 AM
> To: HttpComponents Project
> Subject: Re: blindly accept all cookies?
>
> Ed,
>
> Of course: implement your own CookieSpec, register it with the CookiePolicy class and set http.protocol.cookie-policy parameter to that name.
>
> Ortwin
>
> Nuckles, Ed (GE Infra, Energy) wrote:
>>
>> I'm using the latest version of HTTPClient. I'm getting an error
>> back from HttpMethodBase.processCookieHeaders "illegal domain
>> attribute ".ge-energy.com". Domain of origin is <192....some local
>> IP>" I know exactly why this is happening. The webserver is giving
>> out a cookie with a different domain than its own because it expects
>> the user to go through a reverse proxy. However for debugging I am
>> going around the reverse proxy and need to blindly accept all the
>> cookies. Is there a way to do this?
>>
>> thanks,
>>
>> Ed Nuckles
>> General Electric
>>
>
--
[web] http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp] key 0x81CF3416
finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Re: blindly accept all cookies?
Posted by Ortwin Glück <od...@odi.ch>.
Ed,
Of course: implement your own CookieSpec, register it with the
CookiePolicy class and set http.protocol.cookie-policy parameter to that
name.
Ortwin
Nuckles, Ed (GE Infra, Energy) wrote:
>
> I'm using the latest version of HTTPClient. I'm getting an error back
> from HttpMethodBase.processCookieHeaders "illegal domain attribute
> ".ge-energy.com". Domain of origin is <192....some local IP>" I know
> exactly why this is happening. The webserver is giving out a cookie
> with a different domain than its own because it expects the user to go
> through a reverse proxy. However for debugging I am going around the
> reverse proxy and need to blindly accept all the cookies. Is there a
> way to do this?
>
> thanks,
>
> Ed Nuckles
> General Electric
>
--
[web] http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp] key 0x81CF3416
finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
Mail Delivery Problem (was: blindly accept all cookies?)
Posted by Roland Weber <ht...@dubioso.net>.
Hello Ed,
I answered your question last Saturday on the user list.
There has been a mail delivery problem over the week-end,
but you can look it up in the mailing list archive:
http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200701.mbox/%3c45BB58D6.4030604@dubioso.net%3e
Sorry for the inconvenience,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org