\URL

Summary

Methods
Properties
Constants
__construct()
combineURL()
get_contents()
get()
post()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$error
N/A

Properties

$error

$error

Methods

__construct()

__construct() : mixed

Returns

mixed —

combineURL()

combineURL(string  $baseURL, array  $keysArr) : string

combineURL 拼接url

Parameters

string $baseURL

基于的url

array $keysArr

参数列表数组

Returns

string —

返回拼接的url

get_contents()

get_contents(string  $url) : string

get_contents 服务器通过get请求获得内容

Parameters

string $url

请求的url,拼接后的

Returns

string —

请求返回的内容

get()

get(string  $url, array  $keysArr) : string

get get方式请求资源

Parameters

string $url

基于的baseUrl

array $keysArr

参数列表数组

Returns

string —

返回的资源内容

post()

post(string  $url, array  $keysArr, int  $flag) : string

post post方式请求资源

Parameters

string $url

基于的baseUrl

array $keysArr

请求的参数列表

int $flag

标志位

Returns

string —

返回的资源内容