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

What is the recommended way send out JSON with a POST? #14242

Closed
supriyo-biswas opened this issue Sep 17, 2017 · 1 comment
Closed

What is the recommended way send out JSON with a POST? #14242

supriyo-biswas opened this issue Sep 17, 2017 · 1 comment

Comments

@supriyo-biswas
Copy link

@supriyo-biswas supriyo-biswas commented Sep 17, 2017

I want to send a POST request from an IE.

It seems that youtube-dl has many functions already implemented. So, what is the recommended way to send out JSON as part of a POST request?

There is the _download_json() method but that seems to use a GET and not a POST.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 17, 2017

You must provide data parameter for request to use POST method.

@dstftw dstftw closed this Sep 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.