4 ms·
> This doesn't really need to be an "emacs vs. vim" or "tabs vs. spaces"-type dichotomy: wget and curl do different things well and there's no reason why both s
by manyxcxi 11y ago
> This doesn't really need to be an "emacs vs. vim" or "tabs vs. spaces"-type dichotomy: wget and curl do different things well and there's no reason why both shouldn't coexist in one's workflow.
Totally agree. I love curl for testing API request/responses manually. It's usually a huge part of navigating my way around a new API that doesn't have a client library available for whatever language I'm using at that time.
I also use it for weird requests that need special headers or authentication.
Wget is the first thing I turn to when I'm downloading anything remote from the command line or scraping some remote content for analysis.
- mschuster91 11y agoUse the Chrome Postman extension together with Postman Interceptor. It's really awesome.
- hobarrera 11y agoI'd just like to mention HttpRequester here, which is a very similar FLOSS addon for Firefox.
- majewsky 11y agoRandom plug: Another invaluable tool for API analysis is http://mitmproxy.org http://mitmproxy.org.
- jsingleton 11y agoYes, wget is fantastic for mirroring www and ftp sites and I use it a lot for that purpose. It's magic [0]. I hadn't realized that it didn't support compression though, which might explain why it's so slow in some cases. Not normally a problem as it just runs in the background on a schedule. Curl supports gzip and deflate. It would be great if support for sdch and br were added too. Brotli is in Firefox 44 and can be enabled in Chrome Canary with a flag. SDCH has been in Chrome for a while and is used on Google servers. [0] http://www.litkicks.com/WgetMagic http://www.litkicks.com/WgetMagic
- stephengillie 11y agoThe Win64 latest version of curl doesn't seem to support gzip nor deflate. I have to remove those options when copying from Chrome developer tools and pasting into a script. I'd report a bug but their page doesn't seem to have an obvious link.