Method | Description | |
---|---|---|
__construct ( ) | ||
__get ( $property_name ) : mixed | ||
__set ( $property_name, $value ) | ||
abort ( ) | 取消 | |
addBinary ( string $name, string $entity, $filename = null, $mime = '' ) : mixed | ||
addText ( string $name, string $entity ) : mixed | ||
add_postdata ( string $bstrItem, mixed $bstrValue ) | 添加数据 | |
enableGzip ( ) | 启用Gzip | |
getAllResponseHeaders ( ) : string | ||
getResponseHeader ( $bstrHeader ) : string | 获取返回头 | |
open ( $bstrMethod, $bstrUrl, boolean $varAsync = true, string $bstrUser = '', string $bstrPassword = '' ) : boolean | 链接远程接口 | |
send ( string $varBody = '' ) | 发送数据 | |
setMaxRedirs ( integer $n ) | ||
setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean | 设置请求HTTP头 | |
setTimeOuts ( $resolveTimeout, $connectTimeout, $sendTimeout, $receiveTimeout ) | 设置超时时间 |
Method | Description | |
---|---|---|
reinit ( ) | 重置 |
public add_postdata ( string $bstrItem, mixed $bstrValue ) | ||
$bstrItem | string | 参数 |
$bstrValue | mixed | 值 |
public getResponseHeader ( $bstrHeader ) : string | ||
$bstrHeader | ||
return | string |
public setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean | ||
$bstrHeader | ||
$bstrValue | ||
$append | boolean | |
return | boolean |
public setTimeOuts ( $resolveTimeout, $connectTimeout, $sendTimeout, $receiveTimeout ) | ||
$resolveTimeout | ||
$connectTimeout | ||
$sendTimeout | ||
$receiveTimeout |