Skip to content

Add support for HTTP2 requests in Curl #42

Closed
@mnapoli

Description

@mnapoli

We had that issue in Bref 1 previously:

We need to fix that in the new layers as well.

Here is how I checked the problem:

  • Run bash in a Bref container
    • docker run --rm -it --entrypoint=bash bref/php-81:1.7.15
    • docker run --rm -it --entrypoint=bash bref/php-81:2
  • Check php -i | grep HTTP2 and php -r "var_dump(get_defined_constants());" | grep CURL_HTTP

I should see these constants:

  ["CURL_HTTP_VERSION_1_0"]=>
  ["CURL_HTTP_VERSION_1_1"]=>
  ["CURL_HTTP_VERSION_NONE"]=>
  ["CURL_HTTP_VERSION_2_0"]=>
  ["CURL_HTTP_VERSION_2"]=>
  ["CURL_HTTP_VERSION_2TLS"]=>
  ["CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE"]=>

But instead I see only these:

  ["CURL_HTTP_VERSION_1_0"]=>
  ["CURL_HTTP_VERSION_1_1"]=>
  ["CURL_HTTP_VERSION_NONE"]=>

In Bref 1, we compiled LIBNGHTTP2. In Bref 2 I'd love to find a solution that doesn't involve compiling (slow), if we can install a package that's better.

@shouze do you have any idea?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions