Error processing SSI file
Error processing SSI file

Home » Development Area » DigiGuide Listings Grabber » API Index » Class: XMLHttpRequest » setRequestHeader Method

Class XMLHttpRequest : setRequestHeader Method


void setRequestHeader( String field, String value )

Summary

Set a request header to send to the server.


Remarks

List of response/request headers at the w3.


Parameters

ParameterDescription
String field Field name you wish to get. e.g. last-modified
String value Valeu you wish to set the field to.


Examples

var client = new XMLHttpRequest();
...
var lastModified = new Date();
client.setRequestHeader( "If-Modified-Since", lastModified.toUTCString() );


See Also

  • XMLHttpRequest : getAllResponseHeaders
  • XMLHttpRequest : getResponseHeader


    Requirements

    Build Build 1

    (Last updated: October 12, 2007 16:23:26)

    Error processing SSI file