2017 © Pedro Peláez
 

library httpclient

httpclient components for get/post/put/delete request

image

joinww/httpclient

httpclient components for get/post/put/delete request

  • Tuesday, November 22, 2016
  • by joinww
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

httpclient

HttpClient is a sample components for connect url

#

#

#

How to use

require_once 'path/vendor/autoload.php';
$httpClient = new HttpClient\Client();
$url = 'https://www.baidu.com/s?wd=php';
$response = $httpClient->get($url);
var_dump($response->getBody());
$url = 'http://127.0.0.1/tests/post.php';
$params = ['wd'='php'];
$cookies = ['st'=>1,'ad'=>1];
$response = $httpClient->post($url,$params,$cookies);
var_dump($response->getBody());

The Versions

22/11 2016

dev-master

9999999-dev

httpclient components for get/post/put/delete request

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar joinww

19/10 2016

0.0.1

0.0.1.0

httpclient components for get/post/put/delete request

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar joinww