string|array
PEAR_REST::retrieveData
(
string
$url
,
array|false
$accept = false
,
bool
$forcestring = false
)
retrieve the contents of a remote resource.
$url
full URL to this resource
$accept
contents of the accept-encoding header
$forcestring
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.