Miles is right. Here's my output: [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo) [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl -D - -o /dev/null -s https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/ HTTP/1.1 200 OK [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl -D - -o /dev/null -s --http1.1 https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/ curl: option --http1.1: is unknown curl: try 'curl --help' or 'curl --manual' for more information
On Tue, Jan 8, 2019 at 4:19 PM Miles Libbey <mlib...@apache.org> wrote: > On Tue, Jan 8, 2019 at 3:45 PM Leif Hedstrom <zw...@apache.org> wrote: > > > On Jan 8, 2019, at 4:06 PM, Pushkar Pradhan <pprad...@oath.com.INVALID> > wrote: > > > > > > Even RHEL7 sucks, they are also shipping with an old curl version that > > > doesn't support http1.1. > > > > > > I find that highly unlikely… > > > > [root@98291c1384a2 /]# cat /etc/redhat-release > > CentOS Linux release 7.6.1810 (Core) > > [root@98291c1384a2 /]# curl -D - -o /dev/null -s > https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/ > > HTTP/1.1 200 OK > > I think the test is to add the "--http1.1", not that curl doesn't > support http 1.1. Mainly that is "needed" to avoid h2. > $ curl -D - -o /dev/null -s > https://docs.trafficserver.apache.org/en/latest/ --http1.1 > > If the curl version doesn't support --http1.1, it certainly doesn't > support http2 (at all). So, wonder if there could be a way to only use > that feature if its available? > miles > -- pushkar