Forum: Ruby on Rails Net:HTTP post (to rails) example?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
e deleflie (Guest)
on 2009-04-07 07:12
(Received via mailing list)
Hi all,

I've got a little remote uploader app (written in Ruby Shoes) that
uses Mechanize to create a new object (I think mechanize works by
submitting an http form).

I'd like to take Mechanize out of the equation and do a straight HTTP
POST (authenticated).. but I'm having problems with how to manage the
fact that my object has 2 files in it ... what is the syntax for a
POST that includes a bunch of fields and a couple of files to be

Can anyone help with an example?

This topic is locked and can not be replied to.