Adds param to use http form data instead of json

Not sure if this was needed or not. See related pull request.