httptesting: add DoRequest parameter

Also fix the tests and make them run.
@mhilton yeah, that was definitely one possibility i was considering. i'll do that, especially as the DoRequest name doesn't sit easily with the existing DoRequest function in this package.