Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created Aug 30, 2018
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@thr3a thr3a commented Oct 30, 2020

thanks!!!!!!!!!

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