Posted on 2002-07-20
Here I'm using curl to verify a list of link (avi/mpg) to be sure there is not 404.
what I do is
$ch = curl_init ($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
$result2 = curl_exec ($ch);
and verify that they have the Content-Type: video/x-msvideo header
but how to stop curl from downloading the whole avi/mpg ?!
I just want the headers