On 28/04/2009, RedCarpet <bluecar...@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-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org