addHTTPHeader

void request.addHTTPHeader ( String key, String value )

Description

Manually add an HTTP header.

Parameters

  • key Name of the HTTP header, as a string.
  • value Value to be associated with the header, as a string.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for all editions.

Examples

Add HTTP Header

 // Set Cookie header to someCookieValue
 request.addHTTPHeader( "Cookie" , "someCookieValue");

See Also