sindresorhus / electron-dl

Simplified file downloads for your Electron app
MIT License
1.15k stars 138 forks source link

Download URL with POST requests. #159

Closed cascopia closed 1 year ago

cascopia commented 1 year ago

Is it possible? or how can I download a file(or https stream) over POST request URL?

For example,

url: https://abcd.com/filegenerator header: sessionid, csrftoken, etc.. post body: can be as large as megabytes.

I want to send POST body data and custom headers. Because the file is not a static object but a dynamically generated one.

download(win, url) seems not working for this.

sindresorhus commented 1 year ago

There's no support for POST. You should use a proper HTTP client for that.