On 17 April 2012 11:38, Sam Crawford <[email protected]> wrote: > Look at the last example (section 3.9) on the page you referenced > ( > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/statemgmt.html > ) > > You can retrieve the CookieStore later using: > > CookieStore store = localContext.getAttribute(ClientContext.COOKIE_STORE); > > > But it requires me to add localContext to EACH http.execute method. And I won't search for 20+ executions scattered in 3 files.
You solution is exactly what I don't want to do. Even without saving the cookies to some separate place HttpClient knows what to send, so it must be storing the cookies somewhere. The question is where....
