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
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