-
It's quite a common requirement, but I couldn't find any documentation of it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Submitting a form is just sending a Sending a |
Beta Was this translation helpful? Give feedback.
-
@davyzhang What i do in general when i need a custom request is to create a new http request using http and send it using isahc |
Beta Was this translation helpful? Give feedback.
-
Thanks, @NikosEfthias @sagebind. I understand the idea now. |
Beta Was this translation helpful? Give feedback.
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 likepost
orHttpClient::post
.