Remove response header
Is it possible to remove or disable the server header in the response? I have a unique project that needs to collect all numbers from a page and the date, server version, etc... is causing a problem.
--REMOVE THIS--
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Date: Tue, 29 Sep 2015 17:31:24 GMT
Vary: Accept-Encoding
Connection: keep-alive
Vary: User-Agent
--REMOVE THIS--
It may take some work to
It may take some work to match your headers, but I would start with something like this:
Run a script like this before an extractor pattern is run.
content = scrapeableFile.getContentAsString();
f = content.indexOf("<html");
content = content.substring(f);
scrapeableFile.setLastScrapedData(content);
You'll need to finesse it more, but it should get you started.
Working!
This worked great, thanks. Jeremy