curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: HTTP/2 and server push related questions

From: Abhinav Singhal via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 24 Apr 2024 01:49:28 -0400

Thanks a lot for the prompt response, Stefan. I need clarity on one more
question: if HTTP/2 is enabled, is CURLMPOT_PUSHFUNCTION the only way to
enable the server push feature, or is there any other (non-CLI) way to
enable it?

On Tue, Apr 23, 2024 at 4:18 AM Stefan Eissing <stefan_at_eissing.org> wrote:

>
>
> > Am 23.04.2024 um 09:26 schrieb Abhinav Singhal via curl-library <
> curl-library_at_lists.haxx.se>:
> >
> > Hi,
> > I need to confirm two things:
> >
> > 1. If I build libcurl with the '--without-nghttp2' flag (and with
> '--with-openssl'), will the http2 component be disabled in its entirety?
>
> Yes.
>
> > 2. Is CURLMPOT_PUSHFUNCTION the only way to enable the server push
> feature, or is there any other (non-CLI) way to enable this feature? In
> reference to point 1 above, if I build the code with the
> '--without-nghttp2' flag, then HTTP/2 would be disabled as a whole and so
> would the server push feature, is that correct?
>
> Server Push is only available on the HTTP/2 protocol, so yes. Note that
> HTTP/2 server push is deprecated by the protocol itself nowadays.
>
> Cheers,
> Stefan
>
> > Thanks.
> > --
> > Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
> > Etiquette: https://curl.se/mail/etiquette.html
>
>


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-04-24