AddHeader

From PHRETS


Syntax

AddHeader ( string $name, string $value )


Parameters

$name
Header name to be passed.
$value
Header value to be passed.


Return Values

Boolean
Since the header is maintained in a local settings array, this always returns TRUE


Changelog

Version Description
1.0 If RETS-Version isn't specifically set, it now defaults to RETS/1.5. If User-Agent isn't specifically set, it now defaults to PHRETS/1.0. If Accept isn't specifically set, it now defaults to */*. This makes calling AddHeader() optional prior to connecting


Examples

Add a custom User-Agent (needed when using User-Agent Authentication)

$rets->AddHeader("User-Agent", "CustomApp/1.0");


Related to

Views
Personal tools