Re: Getting http-agent to throw an exception if url doesn't exist?

2011-01-30 Thread Michael Ossareh
On Sat, Jan 29, 2011 at 01:58, Max Weber weber.maximil...@googlemail.comwrote: Give clj-http a try (https://github.com/getwoven/clj-http). It has an architecture similar to the one of Ring. Especially the Ring-style middleware helps a lot, if you want to add custom behaviour like error

Re: Getting http-agent to throw an exception if url doesn't exist?

2011-01-29 Thread Max Weber
Give clj-http a try (https://github.com/getwoven/clj-http). It has an architecture similar to the one of Ring. Especially the Ring-style middleware helps a lot, if you want to add custom behaviour like error handling to clj-http. On 27 Jan., 02:21, Michael Ossareh ossa...@gmail.com wrote: On

Re: Getting http-agent to throw an exception if url doesn't exist?

2011-01-28 Thread Stuart Sierra
There are a handful of Clojure HTTP libraries on Github, but I do not have one in particular to recommend. It's not hard to use Java's HttpUrlConnection directly. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: Getting http-agent to throw an exception if url doesn't exist?

2011-01-26 Thread Stuart Sierra
clojure.contrib.http-agent (which I wrote) is deprecated in 1.2 and gone in 1.3. Its design with respect to error handling is fundamentally broken, as you discovered. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: Getting http-agent to throw an exception if url doesn't exist?

2011-01-26 Thread Michael Ossareh
On Wed, Jan 26, 2011 at 14:57, Stuart Sierra the.stuart.sie...@gmail.comwrote: clojure.contrib.http-agent (which I wrote) is deprecated in 1.2 and gone in 1.3. Which lib is recommended to replace it? -- You received this message because you are subscribed to the Google Groups Clojure group.

Getting http-agent to throw an exception if url doesn't exist?

2011-01-24 Thread HiHeelHottie
user (use '[clojure.contrib.http.agent :as ha]) WARNING: bytes already refers to: #'clojure.core/bytes in namespace: user, being replaced by: #'clojure.contrib.http.agent/bytes nil user (string (http-agent http://url.that.doesnt.exist.com;)) This will block indefinitely since the url does not

Re: Getting http-agent to throw an exception if url doesn't exist?

2011-01-24 Thread Ken Wesson
On Mon, Jan 24, 2011 at 11:23 PM, HiHeelHottie hiheelhot...@gmail.com wrote: user (use '[clojure.contrib.http.agent :as ha]) WARNING: bytes already refers to: #'clojure.core/bytes in namespace: user, being replaced by: #'clojure.contrib.http.agent/bytes nil user (string (http-agent