PEAR_REST::retrieveData

PEAR_REST::retrieveData() – リモートの REST リソースを取得する

Synopsis

require_once '/REST.php';

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

Description

リモートリソースの内容を取得します。

Parameter

string $url

このリソースへの完全な URL。

array|false $accept

accept-encoding ヘッダの内容。

boolean $forcestring

TRUE の場合は xml が文字列として返されます。 それ以外の場合は xml が PEAR_XMLParser でパースされます。

Throws

エラー時には PEAR_Error オブジェクトが返されます。

Note

This function can not be called statically.