Skip to content
Troy Davisson edited this page Mar 5, 2016 · 2 revisions

Note: This page documents capabilities available in the older 1.x version. Please see this repository's README file for the new 2.x version documentation.

AddHeader

AddHeader ( string $name, string $value )

Parameters

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

Return Value

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

Changelog

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

Usage Examples

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

<?php
$rets->AddHeader("User-Agent", "CustomApp/1.0");
Related To

Connect, SetParam