We have two servers (client-facing, and back-end database) between which we would like to transfer PDFs. Here's the data flow:
- User requests PDF from website.
- Site sends request to client-server.
- Client server requests PDF from back-end server (different IP).
- Back-end server sends PDF to client server.
- Client server sends PDF to website.
1-3 and 5 are all good, but #4 is the issue.
We're currently using Flask requests for our API calls and can transfer text and .csv easily, but binary files such as PDF are not working.
And no, I don't have any code, so take it easy on me. Just looking for a suggestion from someone who may have come across this issue.