PHP Class TencentHttp, thinksns

Author: xiaopengzhu ([email protected])
显示文件 Open project: medz/thinksns-4 Class Usage Examples

Public Methods

Method Description
request ( $url, $params = [], $method = 'GET', $multi = false, $extheaders = [] ) : string 发起一个HTTP/HTTPS的请求

Method Details

request() public static method

发起一个HTTP/HTTPS的请求
public static request ( $url, $params = [], $method = 'GET', $multi = false, $extheaders = [] ) : string
$url 接口的URL
$params 接口参数 array('content'=>'test', 'format'=>'json');
$method 请求类型 GET|POST
$multi 图片信息
$extheaders 扩展的包头信息
return string