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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
posted?

Can anyone help with an example?

Etienne
This topic is locked and can not be replied to.