PEAR_REST::retrieveCacheFirst | PEAR_REST::saveCache |
PEAR_REST | |
PEAR Manual | |
require_once '/REST.php'; |
string|array
PEAR_REST::retrieveData
(
string
$url
,
array|false
$accept = false
,
bool
$forcestring = false
)
retrieve the contents of a remote resource.
full URL to this resource
contents of the accept-encoding header
if TRUE, xml will be returned as a string, otherwise, xml will be parsed using PEAR_XMLParser
throws PEAR_Error objects are returned on error.
This function can not be called statically.
PEAR_REST::retrieveCacheFirst | PEAR_REST::saveCache |
PEAR_REST | |
PEAR Manual | |