curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Only fetching a resource over Http/2

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Feb 2017 17:33:25 +0100 (CET)

On Thu, 23 Feb 2017, Benedikt Christoph Wolters wrote:

> i am trying to download a resource over HTTP/2 only. I've noticed that when
> i use --http2 curl silently falls back to HTTP/1.1. However, i'd rather not
> have this fallback, but then rather have no result.
>
> Is there any way to only fetch a page using HTTP/2?

No, there's no such option. There's --http2-prior-knowledge, but that might
not be exactly what you're after.

Honestly, I didn't expect anyone to want to do something like this! =)

-- 
  / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-02-23