4

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)

2 Answers 2

2

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

*thanks to LauJensen on #clojure

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.