Class: Handsoap::Http::Drivers::CurbDriver
- Inherits:
-
Object
- Object
- Handsoap::Http::Drivers::CurbDriver
- Defined in:
- lib/zimbra/ext/handsoap_curb_driver.rb
Instance Method Summary collapse
Instance Method Details
#get_curl(url) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/zimbra/ext/handsoap_curb_driver.rb', line 2 def get_curl(url) if @curl @curl.url = url else @curl = ::Curl::Easy.new(url) @curl.timeout = Handsoap.timeout @curl. = # enables both deflate and gzip compression of responses @curl.encoding = '' if Handsoap.follow_redirects? @curl.follow_location = true @curl.max_redirects = Handsoap.max_redirects end end @curl.ssl_verify_peer = false @curl end |