Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download URL with POST requests. #159

Closed
cascopia opened this issue Dec 22, 2022 · 1 comment
Closed

Download URL with POST requests. #159

cascopia opened this issue Dec 22, 2022 · 1 comment

Comments

@cascopia
Copy link

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
Copy link
Owner

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

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants