When I'm doing a GET request everything works fine but when I try a POST request, it returns 404.
I'm working on this API that interacts with Nagios : https://github.com/EyesOfNetworkCommunity/eonapi
Here's my python GET resquest :
import requests
r = requests.get('https://device/eonapi/getAuthenticationStatus?username=test&apiKey=49fd4f56qs4dfs2sdf4')
print(r.json())
print(r.status_code)
And the result :
{'api_version': '2.4.2', 'http_code': '200 OK', 'status': 'authorized'}
200
The POST request when I'm trying to get information about a monitored host :
import requests
r = requests.post('https://device/eonapi/getHost?username=test&apiKey=49fd4f56qs4dfs2sdf4', data = {'hostName':'test1'})
print(r.status_code)
Result :
404
I don't know what I'm doing wrong, I tried these requests with PHP and cURL but I still get the same results.