Http客户端,基于curl扩展实现。
curl
$curl = new Swoole\Client\CURL(); $curl->get("http://www.qq.com/"); $curl->post("http://www.qq.com/", array( 'a' => 1234, 'b' => 5678, ));
$curl->getHttpCode();
$curl->getEffectiveUrl();