tags:

views:

365

answers:

2

I have been learning to fake posting forms using Ruby's Http class, but now I need to post a file (as in faking a form submission where one of the fields is input type="file"). Anyone know how to do this?

NB It's not essential I use the Http class, just that I can post files.

A: 

Maybe this will help (SO): Ruby: How to post a file via HTTP as multipart/form-data?

Flavius Stef
A: 

This one might help as well

khelll