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");
request.addHTTPHeader( "Cookie" , "someCookieValue");
See Also
- removeHTTPHeader() [request] - Removes an HTTP Header from the request
scraper on 07/16/2010 at 5:15 pm
- Printer-friendly version
- Login or register to post comments