Google App Engineウェブアプリからhttpリクエストを作成しようとしていますが、ホワイトリストに登録されている唯一のクラスであるURLConnectionを使用する必要があることがわかりました。対応するClojureライブラリはclojure.contrib.http.agentであり、私のコードは次のとおりです。
(defroutes example
(GET "/" [] (http/string (http/http-agent "http://www.example.com")))
(route/not-found "Page not found"))
これは私の開発環境では正常に機能します-ブラウザはexample.comのテキストを表示します。しかし、Googleの開発アプリサーバーでテストすると、次のようになります。
phrygian:example wei$ dev_appserver.sh war
2010-09-28 14:53:36.120 java[43845:903] [Java CocoaComponent compatibility mode]: Enabled
...
INFO: The server is running at http://localhost:8080/
ページをロードするとハングします。エラーなどはありません。何が起こっているのか考えてみませんか?