Skip to content

curl with http2 #567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dizews opened this issue Jan 18, 2018 · 4 comments
Closed

curl with http2 #567

dizews opened this issue Jan 18, 2018 · 4 comments

Comments

@dizews
Copy link

dizews commented Jan 18, 2018

Hello.
What do you think to include http2 for curl into docker images?

for example:
Some services like a new Apple Push Notification Service needs to work on this mode

@tianon
Copy link
Member

tianon commented Jan 18, 2018

From https://curl.haxx.se/docs/http2.html:

Since 7.47.0, the curl tool enables HTTP/2 by default for HTTPS connections.

$ docker pull php:7.2
7.2: Pulling from library/php
Digest: sha256:6ead5fbf0a6df6e4f6e75ad92f442adedb4c54a36beb390a86f5baa14fb95c48
Status: Image is up to date for php:7.2

$ docker run -it --rm php:7.2 curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL 

@dizews
Copy link
Author

dizews commented Jan 18, 2018

Good news. I've used php:7.1 this image does not have http2 by default

@tianon
Copy link
Member

tianon commented Jan 18, 2018

Ah, then that's probably due to #504.

@dizews
Copy link
Author

dizews commented Jan 18, 2018

if so, I'll close this issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants