ruby on rails - How can i specify SSL version in curb -


i interacting api requires ssl3.

from command line form request like:

 curl -ssl3 -h 'authorization: bearer xxxx' https://capi-eval.signnow.com/api/user/documentsv2  

with curb have implemented:

  c = curl::easy.new("https://capi-eval.signnow.com/api/document") |curl|   curl.headers["authorization"] = "bearer xxxx"   curl.use_ssl = true   curl.ssl_version = "ssl3"     end 

this ssl_version method seem should same thing -ssl3 switch error message results is:

1.9.3-p286 :082 > c.perform curl::err::sslconnecterror: curl::err::sslconnecterror 

do know how create curb request?

i realized ssl flags require integers. works.

c = curl::easy.new("https://capi-eval.signnow.com/api/documentsv2") |curl|   curl.headers["bearer"] = "xxxx"   curl.verbose = true   curl.use_ssl = 3   curl.ssl_version = 3 end 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -