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?
-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to