from HTTParty to http.rb

27 views
Skip to first unread message

Joshua Powell

unread,
Sep 3, 2020, 12:29:21 PM9/3/20
to http.rb: a fast, easy-to-use Ruby HTTP client with a chainable API
Hi! Looking forward to give http.rb a try

Have the following using HTTParty

response = HTTParty.post(endpoint, options)
options = { body: body, headers: headers, pem: pem, verify: false }

gave the following a try

response = HTTP.post(endpoint, options)
options = { body: body, headers: headers, ssl: { ca_file: pem } }

getting OpenSSL::SSL::SSLError: SSL_connect returned=1 errono=0 state=error: certificate verify failed

How do I set a verify: false setting? 

Tony Arcieri

unread,
Sep 3, 2020, 12:53:53 PM9/3/20
to Joshua Powell, http.rb: a fast, easy-to-use Ruby HTTP client with a chainable API

--


You received this message because you are subscribed to the Google Groups "http.rb: a fast, easy-to-use Ruby HTTP client with a chainable API" group.


To unsubscribe from this group and stop receiving emails from it, send an email to httprb+un...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/httprb/6aaa22d6-4d30-4286-af6f-d4d84d459a3cn%40googlegroups.com.


--
Tony Arcieri
Reply all
Reply to author
Forward
0 new messages