PEAR Manual
Prev |  | Next

# HTTP_Client::setRequestParameter()

HTTP_Client::setRequestParameter() -- Sets parameter(s) for HTTP requests

## Synopsis

    require_once 'HTTP/Client.php';

``void HTTP_Client::setRequestParameter` (mixed $name [, string $value = `NULL`])`

## Description

These parameters will be passed to constructors of created HTTP_Request instances.

## Parameter

mixed `$name`

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

string `$value`

  parameter value if $name is not an array

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
HTTP_Client::setMaxRedirects() | Up | Class Summary HTTP_Client_CookieManager