-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support multipart/form-data
POST
requests
#22
Comments
#4 shows an example of this also. |
Appending things to (let* ((plz-curl-default-args
`("-F" "file=@/some/existing/file"
,@plz-curl-default-args)))
(plz 'post "https://httpbin.org/post")) I think one could come up with a reasonable (form (name "first-part" file "file1.txt" type "text/plain")
(name "second-part" body "some <i>text<i> in my form" type "text/html")) |
Yeah, I didn't mean for users to modify the default args in order to send form data. :) As for the body: I'll need to take another look at the spec to see how that works. It might be possible to send a form-data part and a non-form-data part, in which case using |
Yes, I really want to get the form support, especially to upload file without reading to Emacs buffer with some additional text parameters. It would be very helpful if @astoff 's suggestion can be implemented. |
According to this SO post,
multipart/form-data
POST
requests can be accomplished using curl like so:The text was updated successfully, but these errors were encountered: