DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
yegle

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

  •  
  •   yegle · Feb 25, 2015 · 5761 views
    This topic created in 4121 days ago, the information mentioned may be changed or developed.
    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;
    1 replies    2015-02-25 08:22:36 +08:00
    cctvsmg
        1
    cctvsmg  
       Feb 25, 2015
    datastore还是那么贵,鸡肋
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:10 · PVG 08:10 · LAX 17:10 · JFK 20:10
    ♥ Do have faith in what you're doing.