Can i use org.apache.http.client.HttpClient in goo

2019-02-22 10:35发布

I read somwhere that goole just allowed only fetch. Does that mean it's impossible to integrate org.apache.http.client.HttpClient in google appe engine ?

If not, are there an alternative for using existing librairies using org.apache.http.client.HttpClient on google app engine ?

1条回答
做自己的国王
2楼-- · 2019-02-22 11:10

So the answer is not. You need to use google fetch library.

From Google App Engine wiki page on Google Code as archived by Wayback Machine:

The only supported HTTP transport is UrlFetchTransport based on URL Fetch Java API in the Google App Engine SDK

Do not try ApacheHttpTransport because it will definitely fail on Google App Engine.

查看更多
登录 后发表回答