POST request works in Postman, but not in Python Requests (200 response with robot detection)

后端 未结 2 916
囚心锁ツ
囚心锁ツ 2021-02-05 22:10

I have a POST request that works perfectly with both Postman an cURL (it returns a JSON blob of data). However, when I perform the exact same request with Python\'s Requests lib

2条回答
  •  天命终不由人
    2021-02-05 22:29

    You are getting a 200 success response but not JSON data in the response.
    This means that is just a response object. It contains only response code
    to extract blob information from the response, convert response object to json
    simply json_resp = response_raw.json()
    This json_resp contains your actual response details.

提交回复
热议问题