Switched to cURL when posting requests in order to allow bigger request data.