Для криворукого пидора

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
$curl = curl_init();
$link = 'http://www.youporn.com';
curl_setopt($curl, CURLOPT_URL , $link);
curl_setopt($curl, CURLOPT_USERAGENT, 'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (J2ME/22.478; U; en) Presto/2.5.25 Version/10.54');
curl_setopt($curl, CURLOPT_REFERER, 'http://www.youporn.com/');
curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_NOBODY, 0);
$file = curl_exec($curl);
echo $file;
curl_close($curl);