From: Keith Fahlgren Date: 2007-03-24T01:34:11+09:00 Subject: Re: Uploading a file with net/HTTP On 3/23/07, Nicholas Wieland wrote: > puts Net::HTTP.post_form(URI.parse('http://example.com/upload.php'), > { 'username' => 'foo', 'password' => 'bar', 'Filedata' => File.new > ('way_home.wmv', 'r').read + '\r\n' }) Yeah, unfortunately Net::HTTP doesn't provide a pretty way to do file uploads. Here are some (not pretty) workarounds: http://kfahlgren.com/blog/2006/11/01/multipart-post-in-ruby-2/ HTH, Keith