Excellent thanks Stephen that's done the trick, I've been pulling my hair out over this!
On Jan 1, 9:40 pm, Stephen Compall <stephen.comp...@gmail.com> wrote: > On Sun, 2012-01-01 at 08:11 -0800, djh wrote: > > How do I use this response as part of any subsequent requests? The > > response contains a 302 code which I'd imagine should redirect to the > > homepage as a logged in user, but I'm struggling to understand how to > > make clj-http use the authenticated cookie as part of new requests. > > I think you can just pass {:cookies ...} with the same value from the > response back in with the second request, based on a reading of the > code. > > However, if you're willing to cut out the middleman and go > non-functional, a single DefaultHttpClient from Apache > httpcomponents-client can hold on to a stateful cookie jar for multiple > requests. > > -- > Stephen Compall > ^aCollection allSatisfy: [:each|aCondition]: less is better -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en