App Engine 支持 PHP 5.5 运行时,添加 curl 支持

2015-02-25 05:33:52 +08:00
 yegle
1.9.18 SDK中新增了PHP 5.5运行时,可以在app.yaml中用runtime: php55来使用。

这次运行时附带curl支持。作为最常用的PHP模块之一,此次更新增加了curl支持。

虽然curl通常在PHP中用于创建HTTP请求,它的功能不仅限于HTTP。官方网站上列出了支持的协议列表:

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer resume, proxy tunneling and more.

此次添加的PHP curl模块通过Socket API实现了上述绝大多数协议的支持。

注意:

* Socket API需要打开账户的billing功能(绑定一张信用卡)才能使用。请注意区分“打开billing”和“收费”的区别:打开billing后原有的free quota仍然存在,Socket API也有一部分free quota可以使用 https://cloud.google.com/appengine/docs/quotas#Sockets
* 如果仅仅是想使用curl模块,通过URLFetch API访问HTTP资源,可以使用此次新增的CurlLite。use google\appengine\runtime\CurlLite;
4828 次点击
所在节点    Google App Engine
1 条回复
cctvsmg
2015-02-25 08:22:36 +08:00
datastore还是那么贵,鸡肋

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/172588

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX