# Executing a post via SSH

**URL:** <https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966>\
**Category:** Ruby\
**Created:** [May 24, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966 "2007-05-24T12:06:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![commander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@commander](https://www.ruby-forum.com/u/commander)\
**Post date:** [May 24, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966/1 "2007-05-24T12:06:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![commander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@commander](https://www.ruby-forum.com/u/commander)\
**Post date:** [May 24, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966/2 "2007-05-24T13:00:08Z")

</div>

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](http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/net/https.rb?revision=11708&view=markup)

---

<div class="post-metadata">

**Author:** ![commander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@commander](https://www.ruby-forum.com/u/commander)\
**Post date:** [May 24, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966/3 "2007-05-24T12:40:07Z")

</div>

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