I have a simple rest api which I want to send a post request to using requests. And I am trying to send a post request using:
req = urllib2.Request('http://ip-adress:8990/DATA')
req.add_header('Content-Type', 'application/json')
response = urllib2.urlopen(req, json.dumps(final_out))
However this returns a 405
when i run this i got this error?urllib2.HTTPError HTTPError: HTTP Error 405: METHOD NOT ALLOWED