Hi, I'm getting some strange errors when trying to make a POST request using the Clojure contrib http-agent library (http:// richhickey.github.com/clojure-contrib/http.agent-api.html).
When I run: (use 'clojure.contrib.http.agent) (println (string (http-agent "http://www.google.com" :method "POST" :body "param=true"))) The REPL simply hangs forever. However, when I run the following: (def agt (http-agent "http://www.google.com" :method "POST" :body "param=true")) ;...wait a bit or add a (Thread/sleep 1000) (println (string agt)) I get a correct response (Google saying it doesn't like POST requests) Also, the (result ... ) function appears to work fine also: (println (result (http-agent "http://www.google.com" :method "POST" :body "param=true"))) So it looks like something in the (string ... ) function is causing it to hang if the response has not yet completed. Anyone have any idea what might be causing this? Thanks, Alex Does anyone have any ideas why --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---