when I want to save result for elastic stack, I use ./whatweb [host]--log-elastic-host=localhost:9200 , but I get error message:
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
According to the message, edit file lib/output.rb and add req.add_field('Content-Type', 'application/json') in line 960 of the file will fix this error.
when I want to save result for elastic stack, I use
./whatweb [host]--log-elastic-host=localhost:9200
, but I get error message:According to the message, edit file
lib/output.rb
and addreq.add_field('Content-Type', 'application/json')
in line 960 of the file will fix this error.