HTTP version for CURL command on server and docker image
0
votes
1
answer
3261
views
When I'm doing a CURL call
https://example.com
from a docker container, I got the error : (92) HTTP/2 stream 0 was not closed cleanly: HTTP_1_1_REQUIRED (err 13)
. But when I'm running the same command from the host server (RHEL) where docker container is running, it is working fine.
So, I have added --http1.1 to the command in docker container, then it is working fine. But when I run the same command with --http1.1 on host server, then I got error : option --http1.1: is unknown
.
1. How the curl picks up the http version while making the call? Is there any setting that we can define to use a specific version by default?
2. Why --http1.1 is not working on server, but working in docker container?
Curl version on server is 7.29.0. Curl version on docker container is 7.64.0
Asked by noonenine
(27 rep)
May 29, 2023, 07:09 PM
Last activity: Jul 11, 2025, 07:05 PM
Last activity: Jul 11, 2025, 07:05 PM