Skip to content

Commit

Permalink
bumped version to include ssl cert disable and updated the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Jan 22, 2010
1 parent ed417ea commit 6abf462
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ response = Typhoeus::Request.get("http://twitter.com/statuses/followers.json",
:headers => {"Authorization" => "Basic #{Base64.b64encode("#{username}:#{password}")}"})
</pre>

*SSL*
SSL comes built in to libcurl so it's in Typhoeus as well. If you pass in a url with "https" it should just work assuming that you have your "cert bundle":http://curl.haxx.se/docs/caextract.html in order and the server is verifiable. However, if your bundle is messed up or if you're hitting a non-verifiable SSL server then you'll have to disable peer verification like so:

<pre>
Typhoeus::Request.get("https://mail.google.com/mail", :disable_ssl_peer_verification => true)
</pre>

*LibCurl*
Typhoeus also has a more raw libcurl interface. These are the Easy and Multi objects. If you're into accessing just the raw libcurl style, those are your best bet.

Expand Down
2 changes: 1 addition & 1 deletion lib/typhoeus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
require 'typhoeus/hydra'

module Typhoeus
VERSION = "0.1.16"
VERSION = "0.1.18"

def self.easy_object_pool
@easy_objects ||= []
Expand Down
2 changes: 1 addition & 1 deletion typhoeus.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = %q{typhoeus}
s.version = "0.1.17"
s.version = "0.1.18"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Paul Dix"]
Expand Down

0 comments on commit 6abf462

Please sign in to comment.