Rewrite test cases to remove dependency on httpbin.org and example.com

Partial solution to #1485

Only fixes the uses of httpbin.org; there are still a couple of test cases referencing example.com

I'm not sure if this solution is too much of a hack...