Abir B. schrieb:
> 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
> 

By googling for "class Net::HTTP::Post multipart" you can find an 
article on www.pivotalblabs.com that has a solution on how to enhance 
net/https (by defining a 'text_to_multipart' method etc.). I used this 
code snippet and it works really well.

BR Phil