我可以在谷歌应用程序引擎中使用org.apache.http.client.HttpClient吗? [英] Can i use org.apache.http.client.HttpClient in google app engine?

查看:99
本文介绍了我可以在谷歌应用程序引擎中使用org.apache.http.client.HttpClient吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了一下,那只鬼只允许抓取。这是否意味着将org.apache.http.client.HttpClient集成到Google Appe引擎中是不可能的?



如果没有,是否可以使用org来使用现有的库。 apache.http.client.HttpClient on Google App Engine?

解决方案

所以答案不是。您需要使用Google抓取库。



谷歌代码上的Google App Engine wiki页面
$ b


唯一支持的HTTP传输是< href =https://developers.google.com/api-client-library/java/google-http-java-client/reference/1.20.0/com/google/api/client/extensions/appengine/http/ UrlFetchTransportrel =nofollow noreferrer> UrlFetchTransport 基于URL在Google App Engine SDK中抓取Java API

不要尝试 ApacheHttpTransport ,因为它肯定会在Google App E上失败ngine。



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 ?

解决方案

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.

这篇关于我可以在谷歌应用程序引擎中使用org.apache.http.client.HttpClient吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆