From: "Abir B." Date: 2007-10-23T23:37:10+09:00 Subject: Re: How to send a file from the http client to the server? Richard Conroy wrote: > Abir, > are you using a HTTP client library? Or are you using something > more basic like > raw net/http or open-uri ? You could cheat and use something a bit > more high level > like Hpricot. > > Or are you using something non-Ruby like curl, and need to know exactly > how you > pad out the HTTP Header? I used Ruby (Mongrel) to code the server, and for the client I must use ruby because the file will be generated by the client and then sent to the server, but I'm confused between httpclient, net/http, open-uri ... I don't know the best choice wich respond to my needs. P.S : Robert Dober I can't run your example because httprequest in Mongrel is different from webrick (has only 2 attributes body and params). thanks -- Posted via http://www.ruby-forum.com/.