The API package 'remote_socket' or call 'Resolve()' was not found - GAE Java

后端 未结 3 614
失恋的感觉
失恋的感觉 2021-01-28 08:03

I\'m trying to call a Google Service in a GAE application hosted in GAE cloud:

private String doPost(String URL) throws ClientProtocolException, IOException {
           


        
3条回答
  •  故里飘歌
    2021-01-28 09:03

    Can you use a different http client? Such as recommended here:

    client = new HttpClient(new SimpleHttpConnectionManager()); 
    

    Or what about using the URLFetchService?

    According to this blog post you need a:

    "custom connection manager that converts the final requests and feed them into the URL Fetch service, and then feeds the responses back into HttpClient."

提交回复
热议问题