Skip to content

Enable HTTP/2 for CURL #727

Description

@atbreuer11

I have a lumen based API using the php-74-fpm layer as well as a custom layer to add sqlsrv extensions. When using the curl extension to make a request to Apple's APNs, I am receiving the following error:

production.INFO: APNS request response: �������@��@u��Unexpected HTTP/1.x request

The cause seems simple enough, Bref's provided environment does not have HTTP/2 enabled for the curl extension. According to this Stackoverflow answer, there is a compile time option to enable HTTP/2.

This link may also be helpful: curl http2 docs

If anyone has been able to enable this functionality via a custom layer, I would appreciate any guidance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions