I am using an API that returns application/octet-stream. I want to be able to get the content.
Here is what I see in the data section while debugging
HTTPHeaderDict({'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'Content-Length': '20738',
'Content-Type': 'application/octet-stream', 'Expires': '-1', 'Server': '',
'Content-Disposition': 'attachment; filename=Document.pdf', 'X-Powered-By': '',
'Date': 'Thu, 09 Mar 2023 22:42:28 GMT'})
Here is the code I am using get this content
response_returned = https.request(method='POST', url=f'{Checker}/Id/Document/', headers=headers, body=body)
response_returned.data does not work.
How can I get this content in python ?