Any examples for form data (curl -F
)
#728
Answered
by
ixti
smokeyhallow
asked this question in
Q&A
-
I can't seem to find out how to do the seemingly simple command:
in Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
ixti
Dec 16, 2022
Replies: 2 comments 3 replies
-
@tarcieri I think the question was mostly about HTTP.rb itself. :D @smokeyhallow See: https://github.com/httprb/http/wiki/Passing-Parameters#file-uploads-via-form-data HTTP.post("https://example.com/upload", form: {
image: HTTP::FormData::File.new("hello.png")
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
smokeyhallow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tarcieri I think the question was mostly about HTTP.rb itself. :D
@smokeyhallow See: https://github.com/httprb/http/wiki/Passing-Parameters#file-uploads-via-form-data