Skip to content

Any examples for form data (curl -F) #728

Answered by ixti
smokeyhallow asked this question in Q&A
Discussion options

You must be logged in to vote

@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")
})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@smokeyhallow
Comment options

@tycooon
Comment options

@ixti
Comment options

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