[HN Gopher] 89 Operating Systems
___________________________________________________________________
89 Operating Systems
Author : HieronymusBosch
Score : 83 points
Date : 2022-11-25 14:43 UTC (8 hours ago)
(HTM) web link (daniel.haxx.se)
(TXT) w3m dump (daniel.haxx.se)
| bitwize wrote:
| Better title: 2 Planets
| cf100clunk wrote:
| Title would be clearer as ''How curl has reached nearly ten
| billion installations''
| StayTrue wrote:
| Reminds me of the canonical list of operating systems that suck
| from alt.sysadmin.recovery (spoiler: all of them).
| mnd999 wrote:
| Hard to find that now:
| https://web.archive.org/web/20060720153542/http://www.ehlke....
| neoneye2 wrote:
| Wild stats. Kudos.
|
| What things did you do right/wrong on this amazing journey?
| rpigab wrote:
| Here's an unnecessary use of curl: curl perdu.com
|
| You can use netcat instead, HTTP is easy to write and read:
| nc perdu.com 80 <<< 'GET / HTTP/1.1'$'\r\n''Host:
| perdu.com'$'\r\n''Connection: close'$'\r\n\r\n'
|
| Inspired by https://fasterthanli.me/articles/the-http-crash-
| course-nobod...
| sph wrote:
| Looking forward to you doing TLS by hand with netcat.
| anthk wrote:
| Curl supports parsing.
| woodruffw wrote:
| You probably don't ever actually want to do that, except as a
| demonstration to someone who doesn't know how HTTP works.
|
| (It also doesn't support TLS or any version of HTTP other than
| 1.1, whereas curl can negotiate a newer version.)
| jstanley wrote:
| That's not the same at all, because the nc example dumps the
| response headers to stdout and the curl example does not.
|
| It's more similar to "curl -i perdu.com", except (on my system?
| maybe it's non-default) curl colourises the header names when
| output to a TTY, and prints a progress report to stderr when
| output to a non-TTY.
| [deleted]
| jfoutz wrote:
| you've blown chunked transfer encoding, which is a client MUST
| https://www.rfc-editor.org/rfc/rfc2616#section-3.6
|
| If you control both ends, no big deal. If you're just working
| out some protocol, no big deal. I love simple toy solutions to
| problems, especially when understanding the problem space. But
| this is going to fall apart under any sort of pressure.
| quercusa wrote:
| If my code ran on the Mars helicopter I'd _never_ be able to shut
| up about it.
| bombcar wrote:
| _Especially_ if it wasn't designed specifically for that
| purpose. Someone _else_ looked at your code and said "this is
| good for space".
| sph wrote:
| "This is good for a one of a kind billion dollar project at
| the frontier of science." That would feel pretty dope.
| NateEag wrote:
| A lot of people have this GitHub badge:
|
| https://github.blog/changelog/2021-04-19-new-badge-for-devel...
| ankaAr wrote:
| They must to run doom on that helicopter
| Epa095 wrote:
| Wait, curl can read pop3? And smb? And fricking mqtt?? I learn
| something new every day. Time to go replace my email client with
| curl.
| anderspitman wrote:
| curl is amazing[0]. But I use maybe 10% of it. And AFAIK it can't
| be statically linked. Is there an alternative that includes
| mainly the HTTP functionality and is static?
|
| [0]: you can read my blog using curl:
| https://apitman.com/17/#curlable
| btdmaster wrote:
| Someone got a static build working on MacOS:
| https://github.com/curl/curl/issues/9359 (it looks like a pain,
| but certainly doable given enough time and dependency fiddling)
___________________________________________________________________
(page generated 2022-11-25 23:02 UTC)