curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Disallow HTTP/0.9 ?

From: Dan Fandrich via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 17 Dec 2018 16:59:48 +0100

On Mon, Dec 17, 2018 at 04:00:27PM +0100, Daniel Stenberg via curl-library wrote:
> Thoughts? Any users of HTTP/0.9 or perhaps someone who is surprised that
> curl so willingly accept 0.9 this way?

I can totally believe there are users out there relying on curl's HTTP 0.9
behaviour to use curl as a poor man's netcat. With the -X, --request-target
and -H options you have reasonable control over what is sent to the remote
server, and curl will simply dump whatever the remote server sends to stdout.
I suspect (without proof) that removing this entirely would break lots of
scripts relying on this.

>>> Dan
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-12-17