Add support for forcing content types in requests

Upstreamed from rocketfuel