Modify to send requests as x-www-form-urlencoded instead of JSON