HTTP_Client::setDefaultHeader()

HTTP_Client::setDefaultHeader()

HTTP_Client::setDefaultHeader() -- Sets default header(s) for HTTP requests

Description

These are standard HTTP headers that will be sent by all created HTTP_Request objects.

Parameter

mixed $name

header name or array ('header name' => 'header value')

string $value

header value if $name is not an array

Throws

throws no exceptions thrown

Note

This function can not be called statically.

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