PHPackages                             asasi/component\_http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. asasi/component\_http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

asasi/component\_http
=====================

v1.0.0(6y ago)082MITPHPPHP &gt;=5.4.0

Since Sep 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/peter-asasi/component_http)[ Packagist](https://packagist.org/packages/asasi/component_http)[ RSS](/packages/asasi-component-http/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

component\\http
===============

[](#componenthttp)

简介
--

[](#简介)

支持所有常见的GET、POST、PUT、DELETE、UPDATE等请求方式，支持上传下载、设置和读取header、Cookie、请求参数、失败重试、限速、代理、证书等。

3.0 版完美支持Curl

Composer
--------

[](#composer)

本项目可以使用composer安装，遵循psr-4自动加载规则，在你的 `composer.json` 中加入下面的内容

```
{
    "require": {
        "asasi/compoent_http": "1.0.*"
    }
}
```

然后执行 `composer update` 安装。

之后你便可以使用 `include "vendor/autoload.php";` 来自动加载类。（ps：不要忘了namespace）

用法
--

[](#用法)

### 简单调用

[](#简单调用)

```
