removeHTTPHeader
void request.removeHTTPHeader ( String key, String value )
Description
Manually remove an HTTP header. Both the key and value have to be specified as HTTP headers allow for multiple headers with the same key.
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
Remove HTTP Header
 // Remove the Cookie header with the value someCookieValue
request.removeHTTPHeader( "Cookie" , "someCookieValue");
request.removeHTTPHeader( "Cookie" , "someCookieValue");
See Also
- addHTTPHeader() [request] - Adds an HTTP header to the request
      scraper on 07/16/2010 at 5:15 pm
  
    
          
      
- Printer-friendly version
- Login or register to post comments
