Build http requests in a more consistent way.