Skip to content

Unable to set CURLOPT_ACCEPT_ENCODING to NULL #11433

Closed
@gnif

Description

@gnif

Description

According to the CURL documentation (https://curl.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html) setting CURLOPT_ACCEPT_ENCODING to a null value (not an empty string) will prevent it from decompressing the returned data stream. This is desirable in a caching/proxy scenario.

Currently this is not possible as PHP will always provide a string to this value.

PHP Version

8.1.20

Operating System

Debian 11

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