Executing a post via SSH

Hi,

could somebody show me a working example on how to execute a post via
SSH? Some minutes before I learned that I have to use “require ‘net/
https’” instead of net/http. But net/https is now mentioned in the
docs!? Or am I missing something? If i use net/https my call to
set_form_data seems to be ignored!? Any hint? I’m quite confused.

regards,
Achim

On Thu, May 24, 2007 at 07:05:04PM +0900, Achim D. wrote:

could somebody show me a working example on how to execute a post via
SSH? Some minutes before I learned that I have to use “require ‘net/
https’” instead of net/http. But net/https is now mentioned in the
docs!? Or am I missing something? If i use net/https my call to
set_form_data seems to be ignored!? Any hint? I’m quite confused.

There’s an example of how to convert a working HTTP client into using
HTTPS
here:

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/net/https.rb?revision=11708&view=markup

net/https uses ssl, not ssh. Is that what you mean?

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