While I appreciate the idea and the work that's gone into this site, sadly it seems too basic to be of much use. It only supports half a dozen flags - all of which are easy to use normally anyway. It's missing user agent, headers, cookies, etc. The latter two being items that could be particularly tricky for the "curl novice".<p>Instead I'd probably recommend people use Chrome/Chromium's developer tools which can export HTTP requests as curl commands: <a href="https://coderwall.com/p/-fdgoq/chrome-developer-tools-adds-copy-as-curl" rel="nofollow">https://coderwall.com/p/-fdgoq/chrome-developer-tools-adds-c...</a>
Seems pretty helpful, though for most of my endpoint testing I've switched to httpie[1], and my teammates have followed. The only exception is when I need to load-test a service real quick, and curl can make requests much faster than httpie.<p>[1] <a href="https://github.com/jakubroztocil/httpie" rel="nofollow">https://github.com/jakubroztocil/httpie</a>
I'm a huge fan of "Paw" for OS X (<a href="https://luckymarmot.com/paw" rel="nofollow">https://luckymarmot.com/paw</a>). After you construct your query, it generates the equivalent code for curl, Objective-C (NSURLConnection or AFNetworking), Python, jQuery, or several others. It also now integrates with Mashape so you can download preconstructed libraries of API calls.<p>Disclaimer: I have no connection with Paw's developers - I'm just a very happy user.
Or use <a href="https://github.com/jakubroztocil/httpie" rel="nofollow">https://github.com/jakubroztocil/httpie</a>
Nice idea, but this tool doesn't escape URLs properly. The biggest problem are "&" characters, but also "?" characters make trouble in some shells (e.g. zsh).
I'm a big fan of right clicking on the request in the Chrome developer console and selecting "Copy as cURL". Obviously only works if you're doing browser stuff, but super helpful nonetheless.
Just for the info, Chrome (and possibly other browsers as well) allows to build cURL commands from any network calls with a right-click on a HTTP call in the Network tab.
What I really want is for requestb.in (and friends) to generate a cURL CLI command for me, just like Chrome developer tools does.<p>This would be useful for things like grabbing a test Stripe webhook sent to requestb.in and sending it to your local dev server.<p>(I think there are some things you can host yourself to capture and replay HTTP requests, however - I can't remember what they are)
This is really cool. You could tie the output to one of my projects: embedcurl.com<p>This also makes me want to go back and add Copy as curl to hurl.it.