2017 © Pedro Peláez
 

library httpclient

htt client

image

aweitian/httpclient

htt client

  • Sunday, March 18, 2018
  • by awei.tian
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 21 % Grown

The README.md

安装

composer require aweitian/httpclient, (*1)

示例

$http_client = new \Aw\Httpclient\Curl();
$html = $http_client->get("https://baidu.com/")
->setOption(CURLOPT_TIMEOUT,30)
...
->send();
$response_headers = $http_client->headers_response

测试返回结果

<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>bfe/1.0.8.18</center>
</body>
</html>
array(6) {
  ["Server"]=>
  string(12) "bfe/1.0.8.18"
  ["Date"]=>
  string(29) "Fri, 22 Oct 2021 23:06:44 GMT"
  ["Content-Type"]=>
  string(9) "text/html"
  ["Content-Length"]=>
  string(3) "161"
  ["Connection"]=>
  string(10) "keep-alive"
  ["Location"]=>
  string(21) "http://www.baidu.com/"
}

The Versions

18/03 2018

dev-master

9999999-dev https://github.com/aweitian/httpclient

htt client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar badtomcat

view

18/03 2018

v2.1.0

2.1.0.0 https://github.com/aweitian/httpclient

htt client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar badtomcat

view

24/01 2018

v2.0.0

2.0.0.0 https://github.com/aweitian/httpclient

htt client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar badtomcat

view