I am playing with PHP and curl_multi_exec
and I noticed that there is no way to find out whether an URL has been completly downloaded or not.
Only semi-working way I found is curl_getinfo()
. If there is download_content_length
I could check if the downloaded file is of the same size. However for PHP and CGI-BIN pages the download_content_length
is reported as -1
.
If I use curl_errno()
, it not always work in case of timeouts.