mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-12-15 00:01:02 -05:00
fixed proxy script
This commit is contained in:
parent
695ea6e8a8
commit
08f018c248
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user