http request from Google App Engine

笑着哭i 提交于 2019-12-06 08:35:41

http-agent creates threads so that might be why it does not work.

From the API documentation:

Creates (and immediately returns) an Agent representing an HTTP request running in a new thread.

You could try http-connection, which is a wrapper around HttpURLConnection, so this should work.

Another alternative is to try clj-http. The API seems to be a bit more high-level, but it uses Apache HttpComponents which might be blacklisted.

I am guessing http.async.client is a definite no-go due to its strong asynchronous approach.

You might want to try appengine.urlfetch/fetch from appengine-clj (http://github.com/r0man/appengine-clj, also in clojars)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!