-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fixes #99 by adding --resolve argument support #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes #99 (just added for the dynamic linking effect) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work? I tried to test it from your branch but couldn't get it to work for me, it would just hang.
""" | ||
self.entries = {} | ||
for entry in resolve: | ||
host, port, addresses = entry.split(':', 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems that this won't work correctly if you specify an address without a port. (e.g. www.foo.com:127.0.01
) Since this address will end up as the port
in this case.
def test_resolve_ipv4(self): | ||
with MockHTTPServer(4) as mock_http_server: | ||
r = http('http://httpbin.org:%s/' % mock_http_server.port, | ||
'--resolve', 'httpbin.org:%s:%s' % (mock_http_server.port, mock_http_server.host)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as far as I can tell you never test not specifying a PORT
when calling --resolve
. (--resolve www.foo.com:127.0.0.1
)
wait a minute... this change is based on a really old version of httpie (c. 2012 - pre-v0.2.6) current master |
-I've based it atop of master branch. Any suggestions?-
Sorry, I've used an outdated repo version. Will rebase atop of master.
2018-03-01 0:48 GMT+09:00 Ricardo Contreras <notifications@github.com>:
… wait a minute... this change is based on a really old version of httpie
(c. 2012 - pre-v0.2.6) current master __main__.py looks nothing like that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#657 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMbNCk96swBum80dj0Fcyuw1ZpmNFwyks5tZXVKgaJpZM4SWQic>
.
--
Vladimir Berkutov
|
Hi! I've tried to add
--resolve
argument with a support for both IPv4 and IPv6. I would appreciate any comments:)