hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Creating Cookies, set domain
Date Tue, 28 Apr 2009 14:36:34 GMT
On 28/04/2009, RedCarpet <bluecarpet@gmx.com> wrote:
>
>  I'm using HttpClient 4.0-beta2
>
>  Problem:
>  My app needs to be able to create cookies that are used to login on a
>  website, on the first HTTP request.
>
>  With httpclient-3.x I could easily create a cookie using:
>  Cookie(String domain, String name, String value, String path, Date expires,
>  boolean secure)
>  and then add them to the client using:
>  httpClient.getState().addCookie(cookie);
>
>
>  But HttpClient 4 only has
>  Cookie(String name, String value)
>
>  How can I set the domain, path etc?

Have a look at BasicClientCookie / BasicClientCookie2

> --
>  View this message in context: http://www.nabble.com/Creating-Cookies%2C-set-domain-tp23277965p23277965.html
>  Sent from the HttpClient-User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>  For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

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


Mime
View raw message