Skip to content

How to submit a form with post? #168

Answered by sagebind
davyzhang asked this question in Questions
Discussion options

You must be logged in to vote

Submitting a form is just sending a POST request with a particularly-formatted body. Isahc currently does not have an API to generate this body from form parameters for you at the moment, see #14. For now, there might be other crates you could use to generate the form body, convert it to a byte array, and then send that.

Sending a POST request can be done with functions like post or HttpClient::post.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sagebind
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #168 on December 09, 2020 04:15.