在应用引擎上卷曲 [英] curl on app engine
问题描述
curl 可以在谷歌应用引擎上使用吗?
can curl be used on google app engine ?
推荐答案
没有.要发出 HTTP 请求,您需要使用 urlfetch 服务.
No. To make HTTP requests, you need to use the urlfetch service.
App Engine 上的 urllib、urllib2 和 httplib 已修补以透明地为您使用此 API,因此任何使用这些标准模块之一执行 HTTP 请求的第三方模块都可以工作.
urllib, urllib2, and httplib on App Engine are patched to transparently use this API for you, so any third-party module that does HTTP requests using one of these standard modules will work.
cURL 中的 'c' 存在是因为库是用 C 编写的;其他语言(如 pycurl)的 cURL 接口使用 libcurl 库,不能在 App Engine 上使用,因为不允许回复 C 扩展的模块.
The 'c' in cURL is there because the library is written in C; cURL interfaces in other languages (like pycurl) use the libcurl library, and can't be use on App Engine, as modules that reply on C extensions are not allowed.
这篇关于在应用引擎上卷曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!