Question

Are there any Clojure http libraries that use the java.net.URLConnection class? Reason I'm asking is because that's the only accepted way to make http connections on Google App Engine, according to the docs.

I'm currently using com.twinql.clojure.http for my GET requests, but I don't think that uses the right interface because I'm getting this error on making the connection:

java.security.AccessControlException: access denied (java.net.SocketPermission www.googleapis.com resolve)
Was it helpful?

Solution

clojure.contrib.http.agent seems to do the trick.

*thanks to LauJensen on #clojure

OTHER TIPS

To update yayitswei's answer five years later...

At this point, clojure.contrib.http.agent is deprecated and clj-http is recommended instead, but it uses Apache HTTPComponents client which is no good for Google App Engine.

Anyone wanting to deploy to Google App Engine should use clj-http-lite instead.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top