fix issue with building bad POST requests

Using submit_form doesn't properly notify requests which method is being used, resulting in POST data being sent as params instead.