Skip to content

Equivalent POST request works with request-promise but not with Got #1747

Answered by szmarczak
woacademy asked this question in Q&A
Discussion options

You must be logged in to vote

Note that in the request example you're using application/x-www-form-urlencoded but in the Got example you're using multipart/form-data. Got accepts the first as well, using the form option.

Replies: 13 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@woacademy
Comment options

Answer selected by woacademy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1730 on June 08, 2021 08:26.