curl-curl/tests/data/test3034
Oxan van Leeuwen a93113b5b4
libcurl: reset rewind flag in curl_easy_reset()
curl_easy_reset() did not reset the `rewind_read` flag. This caused any
handles that previously had a CURLE_SEND_FAIL_REWIND error to get stuck
with that error, failing any subsequent requests, even if they didn't
have any body at all.

Verified in test 3034

Fixes #18206
Closes #18207
2025-08-06 17:58:21 +02:00

41 lines
494 B
Plaintext

<testcase>
<info>
<keywords>
CURLOPT_READFUNCTION
curl_easy_reset
rewind
</keywords>
</info>
# Server side
<reply>
<data nocheck="yes">
HTTP/1.1 307 Temporary Redirect OK swsclose
Content-Length: 0
Location: /%TESTNUMBER
</data>
</reply>
# Client side
<client>
<server>
http
</server>
<tool>
lib%TESTNUMBER
</tool>
<name>
Test reset resolves rewind failure
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
<verify>
<errorcode>
0
</errorcode>
</verify>
</testcase>