Python 3.12 – HTTP POST JSON call giving response code 400 (Bad Request)

  Kiến thức lập trình

I am new to python.

While trying to perform http post call using JSON file, i am getting the response code 400 (Bad Request) error.

While trying the same JSON file in postman, it works and getting the expected output.

It works fine in postman, Not sure if any syntax issue on JSON format while using in python code.

Kindly help and advise.

New contributor

Ramkumar A is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT