Referer Property



 
The Referer property contains the referer of the request which will be transmitted as a part of the HTTP request header.


Syntax

    HTTPPost.Referer [=str]
Possible Values
    String that specifies or retrieves the referer.

    The property is read/write.
Remarks
    None.
Examples
    The following example sends a HTTP request containing the referer.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mypost = SiteKiosk.Network.CreateHTTPPost();
    mypost.OnPostComplete = OnPostComplete;
    function OnPostComplete(success, response)
    {
       if (success<0) {alert("Error");} else document.write(response);
    }
    mypost.AddParameter("q", "sitekiosk");
    mypost.Referer = "Terminal3";
    mypost.Submit("http://us.altavista.com/web/results");
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top