How to use "net/http" upload file with post method?

I hava used “ri Net::HTTP”,but I did’t find anything about upload file.

also means: how can I submit a html form like this:

thanks!

On Mar 27, 7:24 pm, “yang cao” [email protected] wrote:

I hava used “ri Net::HTTP”,but I did’t find anything about upload file.

also means: how can I submit a html form like this:

thanks!

This has been discussed before. You can find answers by searching.
For instance:
http://groups.google.com/group/comp.lang.ruby/search?group=comp.lang.ruby&q=net+http+upload+post

HTH,
Chris