Created
August 30, 2018 01:54
-
-
Save miyagawa/44dedd473f26f607cd23d5b5d04c8400 to your computer and use it in GitHub Desktop.
curl --resolve with typhoeus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'typhoeus' | |
require 'ethon' | |
resolve = Ethon::Curl.slist_append(nil, "example.com:443:1.2.3.X") | |
r = Typhoeus::Request.new( | |
"https://example.com", | |
resolve: resolve, | |
# verbose: true, | |
) | |
r.run | |
p r.response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!!!!!!!!!