Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add equivalent cURL --resolve flag #99

aventurella opened this Issue Oct 26, 2012 · 5 comments


None yet
6 participants

Per cURL --help:

--resolve HOST:PORT:ADDRESS Force resolve of HOST:PORT to ADDRESS

(bypasses hosts file)

example usage:

http --resolve "www.foo.com:" GET www.foo.com/whatever


http --resolve "www.foo.com:8080:" GET www.foo.com:8080/whatever


jakubroztocil commented Apr 11, 2013

I think you can achieve the same thing by explicitly setting the Host header:

http Host:www.foo.com

The above trick doesn't work for HTTPS sites. We need a full resolve option similar to curl.

@jakubroztocil jakubroztocil reopened this Oct 19, 2015

MadMub commented Mar 31, 2017

I'm using httpie to test that I setup my DNS round-robin correctly. +1 for feature

Just curious... This has been open for over a year now (since it was reopened)... any chance it's getting looked at? Seems like a useful feature to have.

The underlying software that HTTPie uses does not allow people to specify their own IP addresses for a specific host. It's unlikely it will be added there. So, @aztlan2k it's not likely this is being worked on. Sorry. :/

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