previousHTTP_Client::reset() (Previous) (Next) HTTP_Client::setMaxRedirects()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTTP_Client::setDefaultHeader()

HTTP_Client::setDefaultHeader() – HTTP リクエストでのデフォルトヘッダをセットする

Synopsis

require_once 'HTTP/Client.php';

void HTTP_Client::setDefaultHeader ( mixed $name , string $value = = null )

Description

これらは、生成された全ての HTTP_Request オブジェクトによって送出される標準的な HTTP ヘッダです。

Parameter

mixed $name

ヘッダ名、あるいは配列 ('ヘッダ名' => 'ヘッダ値') を指定します。

string $value

$nameが配列でない場合、ヘッダ値を指定します。

Throws

throws 投げられる例外はありません。

Note

This function can not be called statically.

previousHTTP_Client::reset() (Previous) (Next) HTTP_Client::setMaxRedirects()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.