Ruby on Rails HTTPS Post Bad Request
Greetings all. My application works with a remote server. Server uses https authorization of the certificate. I have following code to authorize and sends request: uri = URI.parse("https://db1-test.content.ertelecom.ru/") http = Net::HTTP.new(uri.host, '443') http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_PEER http.ca_file = File.join(File.dirname("public/certificate.pem"), "certificate.pem") http.start do |http| req = Net::HTTP::Get.new("/cgi-bin/expr/export.get_pay_systems?partner_id=1003") responce = http.request(req) resp = responce.body end this code works well, I get the