Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created August 30, 2018 01:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyagawa/44dedd473f26f607cd23d5b5d04c8400 to your computer and use it in GitHub Desktop.
Save miyagawa/44dedd473f26f607cd23d5b5d04c8400 to your computer and use it in GitHub Desktop.
curl --resolve with typhoeus
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
@thr3a
Copy link

thr3a commented Oct 30, 2020

thanks!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment