-
Hi guys, Im using the CURLOPT_WRITEFUNCTION option to receive data. I saw my function gets called every time a chunk is received. Unfortunately i do not receive a 0-byte length chunk as a last callback "as a signal" that EOF is reached. In case i receive a Content-Length in the response header, i can count the bytes and compare. But in case i do not receive a Content-Length by the Server, how can i determine its the last chunk received (transfer completed)? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
bagder
Sep 30, 2021
Replies: 1 comment
-
You know the response is complete when |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bagder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You know the response is complete when
curl_easy_perform()
returns, or when using the multi interface, whencurl_multi_info_read
saysCURLMSG_DONE
.