Hacker News

DenisDolya
Show HN: I wrote a ~2KB executable file HTTP file downloader without Libc github.com

goosethea day 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)

Retr0id2 days ago

I did a <4KB one that supports DNS+TLS (albeit insecurely) https://github.com/DavidBuchanan314/kurl/

DenisDolyaop2 days 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?

Retr0id2 days 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?

indigodaddy2 days ago

Does this do anything curl can’t or are we just enthralled with the tininess?

DenisDolyaop2 days ago

Actually hfile has nothing new, So the basic philosophy here is a small binary.

hn-front (c) 2024 voximity
source