$params = http_build_query($params, '', '&');
$curl = curl_init($url . ($method == 'GET' && $params ? '?' . $params : ''));
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
//еще чуток опций
$response = curl_exec($curl);
echo $response;exit();
гружу http://rambler.ru/
HTTP/1.1 302 Moved Temporarily
Server: nginx/0.8.49
Date: Sat, 28 Aug 2010 18:35:13 GMT
Content-Type: text/html
Content-Length: 161
Connection: close
Location: http://www.rambler.ru/
HTTP/1.1 200 OK
Server: nginx/0.8.49
Date: Sat, 28 Aug 2010 18:35:13 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Keep-Alive: timeout=50
Set-Cookie: dv=gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA:1283020513; path=/; expires=Thu, 31-Dec-37 23:55:55 GMT
Set-Cookie: dvr=gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA:1283020513; domain=.rambler.ru; path=/; expires=Thu, 31-Dec-37 23:55:55 GMT
Set-Cookie: lv=1283020513; path=/; expires=Thu, 31-Dec-37 23:55:55 GMT
Set-Cookie: lvr=1283020513; domain=.rambler.ru; path=/; expires=Thu, 31-Dec-37 23:55:55 GMT
Expires: Fri, 27 Aug 2010 18:35:13 GMT
Cache-Control: no-cache
Set-Cookie: ruid=AQAAAOFWeUw9Suk5ASklBQB=; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.rambler.ru; path=/
P3P: CP="NON DSP NID ADMa DEVa TAIa PSAa PSDa OUR IND UNI COM NAV"
тобишь на это он всеравно кладет хуй.
Location: http://www.rambler.ru/