:: Documentation >>

requestHeader

Sets HTTP request header.

Syntax

var value = obj.getRequestHeader(name); 
obj.setRequestHeader(name, value);        

Parameters

name (string) - header name
value (string) - header value

Examples

var req = new AW.HTTP.Request;
req.setURL('/application/service.asmx'); 
req.setRequestHeader('Cookie', 'c1=value1; c2=value2');   // set 'Cookie' header
req.request();

See also

responseHeader property

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5