Added support for https on Ruby 1.9.3

Net::HTTP.post_form on Ruby 1.9.3 won't detect the HTTPS protocol and enable SSL. This fix checks the scheme and enables it when necessary.