-
Notifications
You must be signed in to change notification settings - Fork 236
AddHeader
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 ( string $name, string $value )
$name
- Header name to be passed.
$value
- Header value to be passed.
Since the header is maintained in a local settings array, this always returns boolean TRUE
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
Add a custom User-Agent (needed when using User-Agent Authentication):
<?php
$rets->AddHeader("User-Agent", "CustomApp/1.0");