drewkerrigan/nagios-http-json

Http 403

gianks opened this issue · 2 comments

Hi, i'm trying to use the plugin but i get a 403 using both http and https: UNKNOWN: Status UNKNOWN.HTTPError[403].
The full url given back in the output works fine when used with wget or any browser from the same machine.

Tried adding ** -A '{"content-type": "application/json"}'** but same result.
Any ideas?

Hi.
This is a urllib2 problem. Try to add headers to solve.
-A '{"User-Agent": "Mozilla / 5.0"}'
Example usage:
check_http_json.py -A '{"User-Agent": "Mozilla/5.0"}' -H reqres.in -p "api/users"

Hi, should be solved with 7858382