August 1999
Intermediate to advanced
1488 pages
72h 53m
English
deleteResponseHeader(key)
The deleteResponseHeader function is a top-level function and is not associated with any core object. This function is used to delete fields in the HTTP header before it is sent back to the client. Because of when the actual header is sent in relation to the body of the data, you should be sure to delete these fields before you call the flush or redirect functions.
Note
The JavaScript runtime engine flushes the output buffer after 64KB of content has been generated. You should be sure to call the deleteResponseHeader function before this time.
Listing 8.69 shows how you can delete the content-type header field before it is sent back to the browser.
Read now
Unlock full access