httptesting: add DoRequest parameter

Also fix the tests and make them run.
I'd be inclined to call this Do so it matches the name in http.Client.