Show HN: I wrote a ~2KB executable file HTTP file downloader without Libc
9 points
13 hours ago
| 3 comments
| github.com
| HN
goosethe
2 hours ago
[-]
https://gist.github.com/seanwevans/3e9ba17431d5464092d0fb839...

this compiles to 10kb on my machine with no golfing. it literally just supports grabbing whatever is at the url given (http 1.0)

reply
Retr0id
11 hours ago
[-]
I did a <4KB one that supports DNS+TLS (albeit insecurely) https://github.com/DavidBuchanan314/kurl/
reply
DenisDolya
11 hours ago
[-]
This is of course great, and very creative, but why not use an HTTP proxy if this TLS is still unprotected?

Did I misunderstand something?

reply
Retr0id
11 hours ago
[-]
Many servers support TLS only, so implementing the client side of TLS was a matter of compatibility, not security. If external dependencies are allowed then why not just use libcurl?
reply
indigodaddy
13 hours ago
[-]
Does this do anything curl can’t or are we just enthralled with the tininess?
reply
DenisDolya
12 hours ago
[-]
Actually hfile has nothing new, So the basic philosophy here is a small binary.
reply