PHP的HTTP客户端库PHPBuzz.zip
Buzz 是一个轻量级 PHP 的 HTTP 客户端库。 示例代码: <?php $browser = new Buzz\Browser(); $response = $browser->get('http://www.google.com'); echo $browser->getLastRequest()."\n"; echo $response; 底层处理: <?php $request = new Buzz\Message\Request('HEAD', '/', 'http://google.com'); $response = new Buzz\Message\Response(); $client = new Buzz\Client\FileGetContents(); $client->send($request, $response); echo $request; echo $response; 标签:PHPBuzz
文件列表
Buzz-master.zip
(预估有个45文件)
Buzz-master
composer.json
2KB
.scrutinizer.yml
203B
Dockerfile
324B
.php_cs
616B
LICENSE
1KB
doc
middleware.md
3KB
Readme.md
3KB
client.md
3KB
暂无评论