PEAR_REST::retrieveData()

PEAR_REST::retrieveData()  -- Retrieve a remote REST resource

Synopsis

require_once '/REST.php';

string|array PEAR_REST::retrieveData (string $url, array|false [$accept = false], bool [$forcestring = false])

Description

retrieve the contents of a remote resource.

Parameter

string $url

full URL to this resource

array|false $accept

contents of the accept-encoding header

boolean $forcestring

if TRUE, xml will be returned as a string, otherwise, xml will be parsed using PEAR_XMLParser

Throws

throws PEAR_Error objects are returned on error.

Note

This function can not be called statically.