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