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


#1

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!


#2

On Mar 27, 7:24 pm, “yang cao” removed_email_address@domain.invalid 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