react-native-background-downloader icon indicating copy to clipboard operation
react-native-background-downloader copied to clipboard

Body support

Open pmadruga opened this issue 5 years ago • 4 comments

Feature request.

Hi, thanks for the great library. Is it possible to implement sending a body along with the headers? I would open a PR but my knowledge is limited to iOS stuff.

pmadruga avatar Sep 07 '19 16:09 pmadruga

I would like to ask for post method with body too.

aquelatecnologia avatar Sep 11 '19 16:09 aquelatecnologia

Download are usually just static GETs. The headers feature was added for security reasons, where the download is only available to logged users and such. What is the use case behind downloading something using POST and body?

ptelad avatar Sep 20 '19 13:09 ptelad

I also have a usecase for that, which is for a zip stream download, where you have to POST something, and it will will return a file as response.

kbrandwijk avatar Oct 30 '20 20:10 kbrandwijk

Download are usually just static GETs. The headers feature was added for security reasons, where the download is only available to logged users and such. What is the use case behind downloading something using POST and body?

One example is when you have a server-side generated PDF.

pmadruga avatar Nov 19 '20 14:11 pmadruga