Improve test coverage of HTTP API

That just causes `url.Parse` to fail..?