Executing a post via SSH

A

Achim Domma

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
 
B

Brian Candler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top