Scott Mueller wrote:
By the way, this example code of setting cookies in HttpClient doesn't work either: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientCustomContext.javaI copied the code there like this: DefaultHttpClient client = new DefaultHttpClient(); CookieStore cookieStore = new BasicCookieStore(); cookieStore.addCookie(new BasicClientCookie("JSESSIONID", getParameter("session"))); HttpContext context = new BasicHttpContext(); context.setAttribute(ClientContext.COOKIE_STORE, cookieStore); client.execute(post, context); Again, no cookies are specified on the http post. All I want to do is attach the applet to the same session as the browser. Is there a better way to do this? Are cookies functional in HttpClient beta 2?
Yes, they are. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
