added a patch to output a cURL equivalent of the request