Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Curl Adapter + Proxy Server + curl < 7.30 - Header length incorrect #24

@wiese

Description

@wiese

As described in the curl repo, libcurl prior to 7.30 has a problem correctly determining the header length when a proxy server was involved.
This can lead to problems removing the Transfer-Encoding header.

Other notable projects had similar issues:

This can be worked around by

  • separating headers and body by \r\n\r\n (a blank line) and using the resulting parts
  • calculating the header length differently, cp. $pos = strlen($raw) - curl_getinfo($curl, CURLINFO_SIZE_DOWNLOAD);

or, alternatively, the incompatibility should be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions