void fetchWebFile(
$url,
$outputFile, [
$extraHeaders = array()], [
$postDataArray = array()], [
$depth = 0]
)
|
|
Parameters:
|
$url: |
|
|
$outputFile: |
|
|
$extraHeaders: |
|
|
$postDataArray: |
|
|
$depth: |
|
API Tags:
See: | GalleryCoreApi::fetchWebFile |
Information Tags:
Todo: | We should probably be checking the data we get back against the HTTP Content-Length header to verify that we got all the data we expected. |
void fetchWebPage(
$url, [
$extraHeaders = array()], [
$depth = 0]
)
|
|
Parameters:
|
$url: |
|
|
$extraHeaders: |
|
|
$depth: |
|
API Tags:
See: | GalleryCoreApi::fetchWebPage |
void postToWebPage(
$url,
$postDataArray, [
$extraHeaders = array()]
)
|
|
Parameters:
|
$url: |
|
|
$postDataArray: |
|
|
$extraHeaders: |
|
API Tags:
See: | GalleryCoreApi::postToWebPage |
void requestWebPage(
$url, [
$requestMethod = 'GET'], [
$requestHeaders = array()], [
$requestBody = '']
)
|
|
Parameters:
|
$url: |
|
|
$requestMethod: |
|
|
$requestHeaders: |
|
|
$requestBody: |
|
API Tags:
See: | GalleryCoreApi::requestWebPage |
string _encodePostData(
array
$postDataArray,
&$extraHeaders, array
$extraHeaders
)
|
|
Encode the post data. For each key/value pair, urlencode both the key and the value and then
concatenate together. As per the specification, each key/value pair is separated with an ampersand (&)
Parameters:
array |
$postDataArray: |
the key/value post data |
array |
$extraHeaders: |
extra headers to pass to the server |
|
&$extraHeaders: |
|
API Tags:
Return: | the encoded post data |
void _parseLocation(
string
$location, array
$fromComponents, string
2
)
|
|
Prepare to follow redirect URL.
Parameters:
string |
$location: |
|
array |
$fromComponents: |
context we're redirecting from |
string |
2: |
redirect URL |
array _parseUrlForFsockopen(
string
$url
)
|
|
Prepare for fsockopen call.
Parameters:
API Tags:
Return: | url components |
Access: | private |