Good thought!  I tried commenting that out of hosts, flushing my cache and testing, and it still didn't work.

Interestingly, if I use "localhost." instead of "localhost", then it works.  Somewhere something must be configured (or hardcoded) to handle "localhost" specially.


Cheers,
Ox

------------------------------------------------------------------------------------

"I love people who harness themselves, an ox to a heavy cart,
who pull like water buffalo, with massive patience,
who strain in the mud and the muck to move things forward,
who do what has to be done, again and again."

- Marge Piercy



-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20130712
Comment: http://openpgpjs.org

xsBNBFH+6NsBCACxewNAusfWlDC9ORPr9Rvt8N4pl8y0w2R33lIuDRVYDCOp
aROnCGK0+nLeG8AZCpktvOoApRYuVH8GL+Fk/6Nn4XBfE2abM7jGwtfjV2f2
icLmwaGy8t6jkVDcv+yuflrhixFvSZuJzn6dY9b7c4jvT013JsTzs7cNwGac
gCOLHun/xNuAlD5DfmqwDf7h88B75Dth1s3XMj6LDoiGVBXq8LuMm87hHreS
/5CSREkeR81ihRXzfkujUxkGaURv7b1egop6BSPJEtwNuaw84OrDT6duSzBa
a5KoC/8WTYBEdkcNULQfULo+ZR6VdLCusNSbARz8/Dk7IBHRFcY5B/PfABEB
AAHNG094IENhcnQgPG94QGdldGxhbnRlcm4ub3JnPsLAXAQQAQgAEAUCUf7o
3gkQIbFNZUhWmE4AAMnCCACh7FbYaEsx1Z7WIuzEgyrKaRS4k9Fjw1BoAKAW
dKOh+pkV/0r1qy2x603SOlqK7fFYwMuiPqpqF7AVQn2PchSGPEiO8d5LVJ4k
aWJSI/r4gPddzl3nRKkBRFxLtDGyEKXUJAZLVa/H+727W64WjI4/nmUlHbJl
G4ukKHSXXcZaptGk7+OALopEGJIpfinLOciauRE6vzJp3/TW8h7PAGtpaugB
y2AFU319KmDACdluR7yQjMnoNKTHy/C/KAgBkNUt3kYL8HbGsx6ciKGwkd+w
VTFsaS3G+05Qm1PYZVzDBggEdcLZ0xA5BqaN55PgzLdRvZGKFyjmPsgW1HhB
WAwN
=iaKQ
-----END PGP PUBLIC KEY BLOCK-----

On Aug 12, 2013, at 5:12 PM, skivvies <notifications@github.com> wrote:

> In src/test/java/org/littleshoot/proxy/TestUtils.java:
> 
> >       * @param port the proxy port
> >       * @return instance of HttpClient
> >       */
> >      public static HttpClient createProxiedHttpClient(final int port) {
> >          final HttpClient httpclient = new DefaultHttpClient();
> > -        final HttpHost proxy = new HttpHost("localhost", port, "http");
> > +        // Note: we use 127.0.0.1 here because on OS X, using straight up
> 
> (Maybe /etc/hosts binding localhost to the ipv6 ::1 address?)
> …
> —
> Reply to this email directly or view it on GitHub.
>