Net:HTTP post question

Heya all,

I am using Net::HTTP to do post actions to a server, but I have to
include a file in the post action.

I found this:

Is that really the only way to add a file to a POST action using

What I want is the equiv of adding a file in a file select box in a
form using post.


I just read that WWW::Mechanize has an interface for fileuploads, see
EXAMPLES.txt in the API doc:


Looks perfect, thanks :slight_smile:


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs