Skip to content

Feature Request: Restrict protocols #145

@afflerbach

Description

@afflerbach

Hi Mike!

We’re interested in restricting the protocols the client is allowed to use. As far as I know, there’s currently no way to configure options like CURLOPT_PROTOCOLS_STR, CURLOPT_REDIR_PROTOCOLS_STR, or CURLOPT_DEFAULT_PROTOCOL.
Or are there any other approaches to achieve this?

Are there any plans on your side to support these options? For example:

$request->setOptions([
  "protocols" => "http,https", 
  "redir_protocols" => "http,https", 
  "default_protocol" => "https"
]);

If not, would php_http_curle_options_init be the right place to implement such support? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions