PEAR_REST::retrieveData()
PEAR_REST::retrieveData()
-- Retrieve a remote REST resource
概要
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.
パラメータ
- 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
PEAR_Error objects are returned on error.
注意
この関数は、スタティックにコールする
ことはできません。