PEAR_REST::retrieveData

PEAR_REST::retrieveData()

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

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.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.