Re: clj-http - how to use cookies in subsequent request

2012-01-02 Thread djh
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 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 ima

Re: clj-http - how to use cookies in subsequent request

2012-01-01 Thread Stephen Compall
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 co

clj-http - how to use cookies in subsequent request

2012-01-01 Thread djh
I'm really struggling with this one. Basically I'm trying to login to reddit programmatically (I know i know there's an API but just for the purposes of this) and I figured the http library would be the best way to do this. So, using the following code (post "https://ssl.reddit.com/post/login"; {