RootCauseunvalidated
Setting CURLOPT_POSTFIELDS changes set.method to HTTPREQ_POST but does not clear set.upload or rebind data->state.fread_func/data->state.in — when POST follows PUT on the same handle with connection reuse. Tension: the stale PUT read-callback (and its possibly-freed user buffer) is still invoked when the POST body is sent.
37e22b0b-2e98-46ef-b960-a0c09f036adf
Setting CURLOPT_POSTFIELDS changes set.method to HTTPREQ_POST but does not clear set.upload or rebind data->state.fread_func/data->state.in — when POST follows PUT on the same handle with connection reuse. Tension: the stale PUT read-callback (and its possibly-freed user buffer) is still invoked when the POST body is sent.