Hi, I'm trying to log in into Webfaction using the XMLRPC API and Ruby library. Problem is:
While trying this simple example found in the docs, the login call to the server results in:
As you can see. I'm using Windows Ruby 1.9.3p0 . Any ideas?
asked Dec 16 '11 at 15:11
With Ruby, to bypass the Certificate error you have to somewhat hack into the API of the xmlrpc/client library. And that is because the API does not provide any simple solution to turn off that warning about the certificate, but here is what I found and it works.
The important line being:
That turns off the warning and let you connect to the API via xmlrpc library.
Thanx for the help. Even if I could have used Python, I already had the Ruby code, so this hack is faster and better tan porting the script.
Edit: This works on Ruby 1.9.3p0 and pretty sure it works on most 1.9.x versions.