curl-library
i cant get this url works
Date: Fri, 9 Oct 2009 16:38:59 -0500
im trying to get this url with curl and php:
http://www.divxonline.info/video.php?video=69336090ea4aaa67546aada70551896be84f
that is loaded as an iframe on this page (is the main frame, where the
movies shows up):
http://www.divxonline.info/pelicula-divx/6933/The-Damned-United-2009/
if you load it directly on the browser dont works, but when is loaded on the
main page always works fine.
i try to emulate all the headers params with this:
<?php
$url = "
http://www.divxonline.info/video.php?video=693391d3543ae8bf0dbaf34cf97beeb384b2
";
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $url );
curl_setopt ( $ch, CURLOPT_HEADER, true );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_FOLLOWLOCATION, true );
curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 15 );
curl_setopt ( $ch, CURLOPT_FRESH_CONNECT, 1 ); // don't use a cached version
of the url
curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");
curl_setopt ($ch, CURLOPT_REFERER, "
http://www.divxonline.info/pelicula-divx/6933/The-Damned-United-2009/");
$result = curl_exec ( $ch );
?>
Curl works, but happend the same that happend if you load the url directly,
the server dont response anything. i see a couple of cookies but is just for
google analytics, any ideas?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-09