Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
https with ruby
Damjan Rems
8/28/2007 1:08:00 PM
This task has come to my desk last hour and I wonder if it could be done
with ruby:
I would need to send XML file to some url with "HTTP POST request".
That shouldn't be a problem (mechanize comes to mind). Problem is that
url is https:// and certificate should be exchanged during session
start. In browser, browser assures that certificate is exchanged. How do
I do this from ruby program?
I don't know yet, but I guess xml file should be encrypted too.
So can this be accomplished with ruby.
Thank you
TheR
--
Posted via
http://www.ruby-...
.
1 Answer
Jano Svitok
8/28/2007 1:28:00 PM
0
On 8/28/07, Damjan Rems <d_rems@yahoo.com> wrote:
>
> This task has come to my desk last hour and I wonder if it could be done
> with ruby:
>
> I would need to send XML file to some url with "HTTP POST request".
>
> That shouldn't be a problem (mechanize comes to mind). Problem is that
> url is https:// and certificate should be exchanged during session
> start. In browser, browser assures that certificate is exchanged. How do
> I do this from ruby program?
>
> I don't know yet, but I guess xml file should be encrypted too.
>
> So can this be accomplished with ruby.
There's a package for https, on top of Net::HTTP, look for Net::HTTPS,
e.g.
http://snippets.dzone.com/post...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
https with ruby
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password