Live data from Hacker News

Microsoft cURLs too

daniel.haxx.se

41–50 of 107 posts

Re: Microsoft cURLs too

#41
post #9

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. 1. https://httpie.org/

curl may not have the greatest CLI, but it's a huge step up from doing the equivalent tasks with powershell.

not to mention this brings windows closer and closer to nix. windows making itself more familiar to nix increases the number of ops folks that are willing to transition from nix shops to windows, increasing windows share in the server market

plus, as others have pointed out, curl handles protocols besides http.

Re: Microsoft cURLs too

#42
post #9

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. 1. https://httpie.org/

Yea but can you export a httpie command from the browser?

Re: Microsoft cURLs too

#43
post #42
post #9

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. 1. https://httpie.org/

Yea but can you export a httpie command from the browser?

No, and that's a real shame :(

Re: Microsoft cURLs too

#44

Cool, now I don't need to remember the arcane incantation to download a file with Powershell. Do you think we'll see things like the good old "curl | bash" for Windows now? They still have no package manager worth using.

Yeah, “iwr” sure was hard to remember.

I'm pretty sure curl is also an alias for iwr.

Re: Microsoft cURLs too

#45

Earlier quoted context omitted.

It's like they're trying to get a record by not doing that. For years I've been baffled why Notepad at the very least couldn't understand unix line endings.

It's possible they lost the source code and literally can't . They've done it before: https://www.bleepingcomputer.com/news/microsoft/microsoft-ap...

Equation Editor was developed by a third party and MS probably never had the source code in the first place: https://support.microsoft.com/en-us/help/4057882/error-when-...

Re: Microsoft cURLs too

#46

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. This is pretty useful when creating a CLI for pretty much any app, and I've used it regularly to generate a CLI for an app. My post on how to do it: http://austingwalters.com/export-a-command-line-curl-command...

This is amazing! Thanks for sharing

Re: Microsoft cURLs too

#47

Earlier quoted context omitted.

It's like they're trying to get a record by not doing that. For years I've been baffled why Notepad at the very least couldn't understand unix line endings.

It's possible they lost the source code and literally can't . They've done it before: https://www.bleepingcomputer.com/news/microsoft/microsoft-ap...

Notepad is literally a window with the standard Windows Edit control inside it, so they certainly have the source code.

My guess as to why they don't care to support \n-only is that there's been very little need to; anyone who needs more advanced editing isn't going to use Notepad anyway.

As the sibling comment mentions, WordPad (which is similar but with a RichEdit control) does support \n-only.

Re: Microsoft cURLs too

#48
post #9

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. 1. https://httpie.org/

That seems like a tool designed for a very specific use-case (JSON APIs), rather than the general-purpose protocol interaction of cURL. The fact that it appears to be doing some things "behind your back" to be "helpful" like reordering headers or otherwise manipulating the data would certainly be unwanted in a general-purpose tool.

Re: Microsoft cURLs too

#49

Earlier quoted context omitted.

It's possible they lost the source code and literally can't . They've done it before: https://www.bleepingcomputer.com/news/microsoft/microsoft-ap...

Notepad is literally a window with the standard Windows Edit control inside it, so they certainly have the source code. My guess as to why they don't care to support \n-only is that there's been very little need to; anyone who needs more advanced editing isn't going to use Notepad anyway. As the sibling comment mentions, WordPad (which is similar but with a RichEdit control) does support \n-only.

If you want notepad-with-LF-support, ReactOS, the open-source Windows NT clone, has this.

Re: Microsoft cURLs too

#50
post #22

For debugging on remote servers this is pretty handy (at least, one it makes its way into the server versions). Now I have hope they'll put in a text editor that understands unix line endings.

It's like they're trying to get a record by not doing that. For years I've been baffled why Notepad at the very least couldn't understand unix line endings.

It's because windows line endings are actually the technically correct one.

Ever tried raw output to terminal?

Post reply on HN