Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
TencentHttp
PHP Class TencentHttp, thinksns
Author:
xiaopengzhu (
[email protected]
)
Mostrar archivo
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