addHTTPHeader
void response.addHTTPHeader ( String key, String value )
Description
Add HTTP header to response.
Parameters
- key Name of the header, as a string.
- value Value 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
// Adds the HTTP Header Set-Cookie with a value
// of someCookieValue
response.addHTTPHeader( "Set-Cookie" , "someCookieValue");
// of someCookieValue
response.addHTTPHeader( "Set-Cookie" , "someCookieValue");
See Also
- removeHTTPHeader() [response] - Removes an HTTP header from the response
scraper on 07/16/2010 at 5:16 pm
- Printer-friendly version
- Login or register to post comments