Skip to content

CURLOPT_WRITEFUNCTION docs is not clear #21945

Description

@BazaarAcc32

Specify which documentation you found a problem with

For example, if the HTTP server responded with a 301 response code and also sent a body, my tests show that in this case, the function set via CURLOPT_WRITEFUNCTION is not called if CURLOPT_FOLLOWLOCATION is set to 1. The callback is called only for the body from the last response.

The problem

I couldn't find any information about this behavior in the documentation. So, my question is: Is this how it should be? If so, would it be nice to mention this behavior in the documentation. Or is this a library bug? I'm using libcurl 8.20.0

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions