Hello Hareesh,
the cookie shouldn't include commas in the first place,
that's a violation of the respective specification. But
since you have to access that page, try setting a
different cookie policy. Check out the options in
org.apache.commons.httpclient.cookie.CookiePolicy
Try NETSCAPE and BROWSER_COMPATIBILITY.
cheers,
Roland
hareesh babu <[EMAIL PROTECTED]>
16.02.2004 12:21
Please respond to "Commons HttpClient Project"
To: [EMAIL PROTECTED]
cc:
Subject: Cookie Problem
Hi,
I am working on xxxx website using apache commons
library of http client.
I was able to login into the xxxx website using my
code and not able navigate into xxxx website.
I was facing one problem with apache http client at
cookie assumption.
xxxx website is sending cookie like this way,
Set-Cookie:
usr2_xxxx_com=jzu,aa,czj,dm;path=/;domain=.xxxx.com;
But apache http client is dividing the cookie into 4.
"Cookie: usr2_xxx_com=jzu[\r][\n]"
"Cookie: aa=[\r][\n]"
"Cookie: czj=[\r][\n]"
"Cookie:
ON_VAT2=@@@@103556810351170501155924063287@@@@[\r][\n]"
"Cookie: dm=[\r][\n]"
So next when I send a new get method it sending the
xxxx website 4 cookies instead of one.
I am thinking due this problem I was not able to
navigate into xxxx website.
Http client lib i am working on
http://mirrors.xtria.com/apache/jakarta/commons/httpclient/source/commons-httpclient-2.0-rc3-src.zip
Suggest me if am thinking right.
Hareesh.
________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.
Go to: http://in.insurance.yahoo.com/licspecial/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]