Httparty request to curl
<p>Is there a way to convert an httparty request to a curl request?  I would love to be able to send another developer my failed request in a curl format.</p>

<p>I was thinking something like this:</p>

<pre><code>web_caller = HTTPartyClass.new
web_caller.hit_api
web_caller.last_request_as_curl
</code></pre>

<p>Where last_request_as_curl would turn the previous request into a curl string that I can give to the owner of the API when debugging.</p>

<p>Ideally, <code>last_request_as_curl</code> would return something like: "curl -X POST ....."</p>