Need help to upload file with ruby

Hi all,

I'm trying to post a file by http with ruby but I couldn't find a way
to do so, google return rails links only. I found this [1] using http-
access2 but I failed to make it work too. Anyone has a working snippet
for me or some link to get where I could do it easily?

thanx in advance

Sean

[1]: http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/906e97f393b52670/ef5aaae262520eb4