curl / Mailing Lists / curl-users / 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: send http/2 request which is saved in a text file

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 3 Dec 2020 15:01:08 +0100 (CET)

On Thu, 3 Dec 2020, Ahmad Ismail wrote:

> Thank you very much for the response. Just to confirm, can I encode the
> request using https://godoc.org/golang.org/x/net/http2/hpack , and will curl
> stdout of the response will be in decoded (human readable format) or do I
> need to write a decoder as well and pipe the stdout of curl. And which hpack
> encoding / decoding library do you recommend?

No. I meant that you should invoke curl with the proper set of options and
then curl will issue the necessary HTTP/2 request according to the protocol.
curl doesn't let you pass in that "raw". Well, in other ways than you already
did.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://www.wolfssl.com/contact/
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-12-03