TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Microsoft cURLs too

268 pointsby TXCSweover 7 years ago

12 comments

lettergramover 7 years ago
One thing I am always sure to share with collegues when we discuss curl, is the fact from the command line you can generate the underlying C code.<p>This is pretty useful when creating a CLI for pretty much any app, and I&#x27;ve used it regularly to generate a CLI for an app.<p>My post on how to do it: <a href="http:&#x2F;&#x2F;austingwalters.com&#x2F;export-a-command-line-curl-command-to-an-executable&#x2F;" rel="nofollow">http:&#x2F;&#x2F;austingwalters.com&#x2F;export-a-command-line-curl-command...</a>
评论 #16143022 未加载
评论 #16141427 未加载
评论 #16143250 未加载
评论 #16143309 未加载
评论 #16142578 未加载
评论 #16142339 未加载
评论 #16142736 未加载
orfover 7 years ago
Curl is alright, and congratulations on this massive and very impressive step forwards, but the CLI not exactly very user friendly. httpie[1] is a great tool if you find curl invocation somewhat arcane.<p>1. <a href="https:&#x2F;&#x2F;httpie.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;httpie.org&#x2F;</a>
评论 #16142437 未加载
评论 #16141281 未加载
评论 #16141229 未加载
评论 #16145067 未加载
评论 #16142124 未加载
评论 #16142188 未加载
gregmacover 7 years ago
For debugging on remote servers this is pretty handy (at least, one it makes its way into the server versions).<p>Now I have hope they&#x27;ll put in a text editor that understands unix line endings.
评论 #16141507 未加载
评论 #16141655 未加载
nodesocketover 7 years ago
&gt; They ship 7.55.1, while 7.57.0 was the latest version at the time. That’s just three releases away so I consider that pretty good. Lots of distros and others ship (much) older releases.<p>Indeed. I am running latest High Sierra and:<p><pre><code> curl --version curl 7.54.0 (x86_64-apple-darwin17.0) libcurl&#x2F;7.54.0 LibreSSL&#x2F;2.0.20 zlib&#x2F;1.2.11 nghttp2&#x2F;1.24.0</code></pre>
ComodoHackerover 7 years ago
On a side note, for all my daily download tasks (other than debugging some web API) I&#x27;ve settled with aria2[0]. It seems to support every protocol used in modern Internet and has plenty of flexibility (connection multiplexing, bandwidth control etc.). It can even serve as 24&#x2F;7 torrent client managed via remote API.<p>0. <a href="https:&#x2F;&#x2F;aria2.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aria2.github.io&#x2F;</a>
评论 #16143212 未加载
qwerty456127over 7 years ago
BTW another program (and a library) that should, IMHO, be made a standard component of every modern OS (except those that would choose to exclude it for a practical reason, e.g. some of extremely-lightweight and heavily specialized embedded ones) is SQLite3
qwerty456127over 7 years ago
Cool. I&#x27;ve been installing wget on every Windows PC in my authority since the days of Windows 98SE. Every net-enabled operating system is to have such a tool installed by default.
ape4over 7 years ago
Now, just ~1000 other commands to go
评论 #16142040 未加载
评论 #16142120 未加载
colemannugentover 7 years ago
Cool, now I don&#x27;t need to remember the arcane incantation to download a file with Powershell.<p>Do you think we&#x27;ll see things like the good old &quot;curl &lt;some url&gt; | bash&quot; for Windows now? They still have no package manager worth using.
评论 #16141209 未加载
评论 #16141187 未加载
评论 #16141396 未加载
评论 #16141015 未加载
评论 #16141591 未加载
评论 #16142549 未加载
评论 #16142880 未加载
评论 #16141276 未加载
评论 #16142617 未加载
chrisperover 7 years ago
What would be the reason behind disabling all those protocols?
评论 #16141949 未加载
ghewsover 7 years ago
I don&#x27;t like Microsoft ,but I still wish Linux on Windows will have a brighter future.
oblioover 7 years ago
Either the Curl developers are at fault somewhere, which I somehow doubt, or distributions are really special snowflakes, which I also doubt, or software distribution in the Open Source world is, in my opinion, flawed:<p>&gt; Finally, I’d like to add that like all operating system distributions that ship curl (macOS, Linux distros, the BSDs, AIX, etc) Microsoft builds, packages and ships the curl binary completely independently from the actual curl project.<p>Why would <i></i>everyone<i></i> rebuild it? There are some security considerations (matching source and binary; disabling &quot;dangerous&quot; stuff) and some feature considerations (disable stuff you don&#x27;t need to reduce resource usage - maybe), but conceptually this seems so wrong to me.<p>Conceptually I&#x27;d want downstream packagers to talk to upstream developers so that upstream has reasonable defaults and settings and I&#x27;d want packagers to just <i></i>package<i></i> and make the package follow distribution conventions. But rebuild seems overkill.<p>Maybe I&#x27;m missing something obvious?
评论 #16141053 未加载
评论 #16141407 未加载
评论 #16141139 未加载
评论 #16141690 未加载
评论 #16141444 未加载
评论 #16141067 未加载
评论 #16142709 未加载
评论 #16141399 未加载
评论 #16141205 未加载
评论 #16143439 未加载