Re: [Resteasy-users] Setting cookies per request in Resteasy Client
Hi Craig, Sorry for the late response. We already moved to use jboss mailing list : http://resteasy.jboss.org/mailinglists. If you have any resteasy questions in the future, please post to the new mailing list. To clear the cookie, did you try set a new created HttpClientClientConxt to the ApachHttpClientEngine and clear cookieStore before send the request like below example code ? ApacheHttpClient4Engine engine = new ApacheHttpClient4Engine(); HttpClientContext context = new HttpClientContext(); engine.setHttpContext(context); ResteasyClient client = new ResteasyClientBuilder().httpEngine(engine).build(); //clear cookie context.getCookieStore().clear(); Response response = client.target(url).request().post(entity); Cheers, Jim Messaggio Inoltrato Oggetto:[Resteasy-users] Setting cookies per request in Resteasy Client Data: Mon, 11 Apr 2016 09:54:27 -0500 Mittente: Craig Ching <craigch...@gmail.com> A: resteasy-users@lists.sourceforge.net Hi, I’m having problems managing cookies in the Resteasy Client. It seems like when a “Set-Cookie” is returned from a server, that there is no way to clear that cookie on a new request. Essentially, it appears that the cookies are set on the client and not on the individual invocation (maybe via an Apache HttpContext?). I want to take responsibility for managing cookies *completely* and do it per request. I’ve tried playing with ClientRequestFilter, but the cookies don’t show up in the headers or the cookies there. I’m looking at what I can override in the ApacheHttpClient4Engine, but it looks like there is no way to specify a context per request. Does anyone have any ideas of other things I could try? I’m at the point of having to drop down to Apache HttpClient directly for my calls, but I don’t want to as it’s nice using the JAX-RS Response. Thanks for any help! Cheers, Craig -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301=/ca-pub-7940484522588532 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users -- ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Setting cookies per request in Resteasy Client
Hi Craig, We depreated this mailing list, please start to use the new ones: https://lists.jboss.org/mailman/listinfo/resteasy-dev https://lists.jboss.org/mailman/listinfo/resteasy https://lists.jboss.org/mailman/listinfo/resteasy-commits -- Weinan Li / JBoss > On Apr 11, 2016, at 10:54 PM, Craig Chingwrote: > > Hi, > > I’m having problems managing cookies in the Resteasy Client. It seems like > when a “Set-Cookie” is returned from a server, that there is no way to clear > that cookie on a new request. Essentially, it appears that the cookies are > set on the client and not on the individual invocation (maybe via an Apache > HttpContext?). I want to take responsibility for managing cookies > *completely* and do it per request. > > I’ve tried playing with ClientRequestFilter, but the cookies don’t show up in > the headers or the cookies there. I’m looking at what I can override in the > ApacheHttpClient4Engine, but it looks like there is no way to specify a > context per request. > > Does anyone have any ideas of other things I could try? I’m at the point of > having to drop down to Apache HttpClient directly for my calls, but I don’t > want to as it’s nice using the JAX-RS Response. > > Thanks for any help! > > Cheers, > Craig > -- > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/ > gampad/clk?id=1444514301=/ca-pub-7940484522588532 > ___ > Resteasy-users mailing list > Resteasy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/resteasy-users -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
[Resteasy-users] Setting cookies per request in Resteasy Client
Hi, I’m having problems managing cookies in the Resteasy Client. It seems like when a “Set-Cookie” is returned from a server, that there is no way to clear that cookie on a new request. Essentially, it appears that the cookies are set on the client and not on the individual invocation (maybe via an Apache HttpContext?). I want to take responsibility for managing cookies *completely* and do it per request. I’ve tried playing with ClientRequestFilter, but the cookies don’t show up in the headers or the cookies there. I’m looking at what I can override in the ApacheHttpClient4Engine, but it looks like there is no way to specify a context per request. Does anyone have any ideas of other things I could try? I’m at the point of having to drop down to Apache HttpClient directly for my calls, but I don’t want to as it’s nice using the JAX-RS Response. Thanks for any help! Cheers, Craig -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301=/ca-pub-7940484522588532 ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users