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: Ahmad Ismail via curl-users <>
Date: Thu, 3 Dec 2020 19:54:41 +0600

Hi Daniel Stenberg,

Thank you very much for the response. Just to confirm, can I encode the
request using , 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?

One more question, I am considering http/2. I have a question in
stackoverflow which is regarding optimizing the rest API for HTTP/2 or
HTTP/3 (
Will it be possible for you to kindly look into it. On that note, do you
have any resources on cpu usage vs bandwidth usage trade off when updating
from HTTP/1.1 to HTTP/2 or HTTP/3. All the benchmarks I found are regarding
bandwidth. However, I am interested in cpu benchmark comparison of HTTP/1.1
vs HTTP/2 or HTTP/3 where https is enabled in both cases.

*Thanks and Best Regards,Ahmad Ismail*

On Thu, Dec 3, 2020 at 12:53 PM Daniel Stenberg <> wrote:

> On Thu, 3 Dec 2020, Ahmad Ismail via curl-users wrote:
> > % cat raw-http.txt | encode-request | curl "telnet://"
> >
> > however I am not sure how to achieve this. any suggestions?
> You need to write "encode-request" to convert it into a series of curl
> command
> line options and make curl read them from stdin with "-K -".
> --
> /
> | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> |

Received on 2020-12-03