https with ruby

D

Damjan Rems

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
 
J

Jano Svitok

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/posts/show/788
 

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

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,317
Members
48,003
Latest member
coldDuece

Latest Threads

Top