All pastes #549107 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-08 00:10 UTC
rendered paste body
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://www.google.co.uk/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt");

curl_exec($ch);
curl_close($ch);