hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: Managing cookies
Date Tue, 27 Jun 2006 18:47:03 GMT
Hello Eugeny,

> I'm using HttpClient in my spider application. Some domains are setting
> cookies at start pages and are checking that cookies on next pages (I don't
> know why, it's just fact).

It's called a session, and cookies are the preferred way to track them.
http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners#head-143a342e3c04ac990badbbe6cdd01bd922b29b4d

> Is it possible to remember cookies and use them in
> HttpClient later with setting some properties of connector, or I need to do
> this in my application.

It's done by default in HttpState objects. Each HttpClient object
has a default HttpState.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message