$url = "https://www.google.com/bla-bla-bla";
$cUrl = curl_init();
curl_setopt($cUrl, CURLOPT_URL, $url);
curl_setopt($cUrl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($cUrl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($cUrl, CURLOPT_REFERER, 'http://www.google.com/');
curl_setopt($cUrl, CURLOPT_AUTOREFERER, 1);
curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cUrl, CURLOPT_TIMEOUT, 10);
curl_setopt($cUrl, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($cUrl, CURLOPT_COOKIEFILE, "cookie.txt");
$fero = curl_exec($cUrl);
preg_match('|name="GALX".*value="(.*)" \/>|isU', $fero, $galx);
$syk = $galx[1];
$murl = "https://www.google.com/bla-bla-bla";
curl_setopt($cUrl, CURLOPT_URL, $murl);
curl_setopt($cUrl, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cUrl, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MyIE2; MRA 4.10 (build 01952); MRSPUTNIK 1, 8, 0, 17 SW)');
curl_setopt($cUrl, CURLOPT_CONNECTTIMEOUT, '12');
curl_setopt($cUrl, CURLOPT_TIMEOUT, '10');
curl_setopt($cUrl, CURLOPT_REFERER, 'https://www.google.com/bla-bla-bla');
curl_setopt($cUrl, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($cUrl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($cUrl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($cUrl, CURLOPT_HEADER, 0);
curl_setopt($cUrl, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($cUrl, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($cUrl, CURLOPT_POST, 1);
$PostData = "continue=bla-bla-bla";
curl_setopt($cUrl, CURLOPT_POSTFIELDS, $PostData);
$Content = curl_exec($cUrl);
curl_close(cUrl);