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:

<form action="/fileupload" enctype="multipart/form-data">
  <input name=filename type=file>
</form>

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

···

On Mar 27, 7:24 pm, "yang cao" <caoyangr...@gmail.com> 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:

<form action="/fileupload" enctype="multipart/form-data">
  <input name=filename type=file>
</form>

thanks!