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

2019-02-22 10:44发布

问题:

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:

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.