I would like to retrieve product data using the POST method and pass the security key in the header. I get an HTTP 400 error:
def api(request):
headers={'content-type':'application/json','security-key': 'valu-key'}
url = 'http://api-content/product/GetProduct'
x = requests.post(url, headers = headers)
content=x.status_code
return HttpResponse(content)