# HTTPS Post Bad Request

**URL:** <https://www.ruby-forum.com/t/https-post-bad-request/178844>\
**Category:** Ruby\
**Created:** [November 12, 2009, 4:53am UTC](https://www.ruby-forum.com/t/https-post-bad-request/178844 "2009-11-12T04:53:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![finist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/278dde/32.png) [@finist](https://www.ruby-forum.com/u/finist)\
**Post date:** [November 12, 2009, 4:53am UTC](https://www.ruby-forum.com/t/https-post-bad-request/178844/1 "2009-11-12T04:53:49Z")

</div>

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/](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 data from the server. BUT when I try to  
make POST request:

http.start do |http|  
req =  
Net::HTTP::Post.new(“/cgi-bin/expr/payment\_transactions.verify\_order”,  
params)  
responce = http.request(req)  
resp = responce.body  
end

I get an error from the server:

Your browser sent a request that this server could not understand.  
Request header field is missing ‘:’ separator.

what is that be? I tried to find a solution, but to no avail. the  
Internet caught the message that it could be antivirus, but I’m on  
Linux. I will be glad to any thoughts!
