Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

curl already supports HTTP/2 and HTTP/3.

It's true that you miss out on "telnet example.com 80" and typing "GET /", but that honestly hasn't been valid since HTTP/1.1 replaced HTTP/1.0. To some extent this all sounds to me like "I hate screws, they render my trusty hammer obsolete". That's true, but there are also great screw driving tools.



The only difference between HTTP/1.0 and HTTP/1.1 is having to send the 'Host:' header.


You could still do valid HTTP/1.1 over nc or telnet, or 'openssl s_client' if you needed TLS; it was just a matter of you knowing the protocol, and the minimum required headers for your use-case. (That said, curl is generally a better choice.)


> or 'openssl s_client' if you needed TLS

Which sites tend to need.

I'm sure someone can make an equivalent to that. Maybe even just a wrapper around curl...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: