fixed proxy script

This commit is contained in:
HoneyryderChuck 2017-12-22 09:53:11 +02:00
parent 695ea6e8a8
commit 08f018c248

View File

@ -3,14 +3,14 @@ require "httpx"
include HTTPX
# supports HTTP/1 pipelining and HTTP/2
URLS = %w[https://nghttp2.org https://nghttp2.org/blog/]# * 3
URLS = %w[http://nghttp2.org https://nghttp2.org/blog/]# * 3
client = HTTPX.plugin(:proxy)
# client = client.with_proxy(proxy_uri: "http://139.162.116.181:51089")
# responses = client.get(URLS)
# puts responses.map(&:status)
client = client.with_proxy(uri: "http://61.7.174.110:54132")
responses = client.get(URLS)
puts responses.map(&:status)
response = client.get(URLS.first)
puts response.status
# response = client.get(URLS.first)
# puts response.status