No commit activity in last 3 years
No release in over 3 years
Wrapper for IO to upload to web server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

httpclient-uploadio

You can upload an IO to web server through httpclient-uploadio.

Install

gem install httpclient-uploadio

Example

require 'httpclient/uploadio'
require 'stringio'

io       = HTTPClient::UploadIO.new(StringIO.new("foo"), "foo.txt") # create UploadIO
client   = HTTPClient.new
response = client.post('http://localhost:4567/', :file => io)       # post
puts "response: #{response.body}"

Copyright

Copyright (c) 2011 jugyo. See LICENSE.txt for further details.