Instead of manually dialing, writing, and reading, you could use [`http.Transport.RoundTrip`](http://golang.org/pkg/net/http/#Transport).