[Guzzle] PHP HTTP 客户端和框架
2015-06-03 14:28
671 查看
cURL是利用PHP发送HTTP请求最常用的标准方式。它比fopen这种方式更强大。
Guzzle, 是 cURL 的一个封装,使得这个功能甚至更好,此外还增了新的功能。
使用这个框架内,我们可以发送并行+持久连接。并且能够通过插件实现缓存,OAuth, AWS集成
All the power of cURL with a simple interface.
持久连接和并行请求
Streams request and response bodies
Service
descriptions for quickly building clients.
Powered by the Symfony2 EventDispatcher.
Use all of the code or only specific
components.
Plugins for
caching, logging, OAuth, mocks, and more
Includes a custom node.js webserver to test
your clients.
该框架是非常稳定,甚至用在Drupal核心,并且可以迅速融入任何代码。
项目地址: http://guzzlephp.org/
下载地址: https://github.com/guzzle/guzzle
Guzzle, 是 cURL 的一个封装,使得这个功能甚至更好,此外还增了新的功能。
使用这个框架内,我们可以发送并行+持久连接。并且能够通过插件实现缓存,OAuth, AWS集成
All the power of cURL with a simple interface.
持久连接和并行请求
Streams request and response bodies
Service
descriptions for quickly building clients.
Powered by the Symfony2 EventDispatcher.
Use all of the code or only specific
components.
Plugins for
caching, logging, OAuth, mocks, and more
Includes a custom node.js webserver to test
your clients.
该框架是非常稳定,甚至用在Drupal核心,并且可以迅速融入任何代码。
项目地址: http://guzzlephp.org/
下载地址: https://github.com/guzzle/guzzle
相关文章推荐
- Swift中的HTTP请求
- iOS应用架构谈 网络层设计方案
- 使用java检测网络连接状况
- 常见的Http Status Code
- HttpClient上传图片,下载文件
- VMware中CentOS网络设置
- 使用charles proxy for Mac来抓取手机App的网络包
- Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address
- bzoj 2406: 矩阵 上下界网络流判定
- bzoj 2406: 矩阵 上下界网络流判定
- <meta http-equiv="X-UA-Compatible" content="IE=Edge">是神马鬼?
- 网络编程之shutdown() 与 close()函数详解
- 高性能、高并发TCP服务器(多线程调用libevent)
- Android的HttpURLConnection
- SIM(USIM)卡中的数据和2G/3G网络的鉴权
- 关于心跳网络引起的Oracle RAC的节点驱逐(不是实例驱逐)
- HTTP详解(3)-http1.0 和http1.1 区别
- HTTP详解(2)-请求、响应、缓存
- HTTP详解(1)-工作原理
- 关于虚拟机和宿主机之间的网络互连的配置的一解决方案