[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Executing a post via SSH

Achim Domma

5/24/2007 10:05:00 AM

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

1 Answer

Brian Candler

5/24/2007 10:59:00 AM

0

On Thu, May 24, 2007 at 07:05:04PM +0900, Achim Domma 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&v...