hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Rana" <r...@solis.jp>
Subject RE: automatic management of cookie
Date Wed, 25 Jun 2003 03:12:17 GMT
Hello Michael,

 Thank you for the reply.

> What exactly is the problem you are having?  Is HttpClient throwing
> exceptions when it tries to parse the cookies from this server?
I am sorry for not writing clearly before.

I am trying to access a site which gives me a fixed response "Server is
busy please try later". This seems to be a canned response which I get
from my browser only when I disable cookies. Otherwise I have never
received this response on a browser.

Please feel free to correct me if I am wrong
1. Either the server has some check and sends a canned response for
anybody trying to access using a program, I think this should not be the
case because only way they can find the client is by User-agent which
can be set or
2. My browser gives same response code when cookies are disabled so I
want to make sure it is not a cookie problem.

I am trying to perform a Japanese trademark search on this site
http://www2.ipdl.jpo.go.jp/beginner_tm/TM_AREA.cgi (NOTE: if you want to
try it, text box expects only double byte input)

PFA the log. I highly appreciate your help.


> -----Original Message-----
> From: Michael Becke [mailto:becke@u.washington.edu]
> Sent: Wednesday, June 25, 2003 11:46 AM
> To: Commons HttpClient Project
> Subject: Re: automatic management of cookie
> Hello Amit,
> > HttpClient client = new HttpClient();
> > client.getState().setCookiePolicy(CookiePolicy.COMPATIBILITY);
> > HttpMethod method = new GetMethod(url);
> > Int statusCode = client.executeMethod(method);
> This will configure HttpClient to use the compatibility cookie mode.
> This is not necessarily required but is probably best to ensure
> cookie handling.
> > Please feel free to point me to a document/link which can give more
> > information about the same.
> >
> > 	I am trying to connect to a website which needs cookie support
> > from the client. I am getting same response while trying to connect
> > from
> > httpclient which I get when I access the site with cookies disabled
> > my browser.
> The cookie documentation on the HttpClient site is about all there is.
> There's not too much more to it.
> What exactly is the problem you are having?  Is HttpClient throwing
> exceptions when it tries to parse the cookies from this server?
> Please take a look at the trouble shooting guide
> <http://jakarta.apache.org/commons/httpclient/troubleshooting.html>
> some more things to look at.  If this is not helpful in resolving the
> problem please post a wire log to the mailing list that shows the
> problematic transmission, see
> <http://jakarta.apache.org/commons/httpclient/logging.html> for how to
> create a wire log.
> Mike
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org

View raw message