rito
New Member
- Since
- Jan 27, 2010
- Messages
- 11,584
- Score
- 2
- Tokens
- 0
This function and another like it are in two different scripts that some ukranian dude wrote for me to scrape past box scores and lines. They work ok, but somthing odd is here with the bold parts.
What is he doing with sbr and bookmaker? Neither script has anything to do with said sites. I've never even mentioned them. This script pulls from covers.com and nothing else.
protected function post_page($url,$postFields,$refer,$cookie)
{
curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('X-MicrosoftAjax' => ' Delta=true', 'Accept' => 'text/plain,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'));
curl_setopt($this->ch, CURLOPT_REFERER, $refer);
//$cookie = '__utma=56692281.1669766007.1254490270.1263502814.1263567256.11; __utmz=56692281.1255006849.2.2.utmcsr=sportsbookreview.com|utmccn=(referral)|utmcmd=referral|utmcct=/sbr/bookmaker/; campaignid=LOCAL; affid=INTERNET; ASP.NET_SessionId=o3fwqejupk0hxw45eiv51x55; __utmc=56692281; tabname=null';
curl_setopt($this->ch, CURLOPT_COOKIE, $cookie);
curl_setopt($this->ch, CURLOPT_POST, true);
curl_setopt($this->ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($this->ch, CURLOPT_URL, $url);
$page = curl_exec($this->ch);
if(curl_errno($this->ch) <> 0)
{
throw new Exception(curl_error($this->ch));
}
return $page;
}
What is he doing with sbr and bookmaker? Neither script has anything to do with said sites. I've never even mentioned them. This script pulls from covers.com and nothing else.
protected function post_page($url,$postFields,$refer,$cookie)
{
curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('X-MicrosoftAjax' => ' Delta=true', 'Accept' => 'text/plain,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'));
curl_setopt($this->ch, CURLOPT_REFERER, $refer);
//$cookie = '__utma=56692281.1669766007.1254490270.1263502814.1263567256.11; __utmz=56692281.1255006849.2.2.utmcsr=sportsbookreview.com|utmccn=(referral)|utmcmd=referral|utmcct=/sbr/bookmaker/; campaignid=LOCAL; affid=INTERNET; ASP.NET_SessionId=o3fwqejupk0hxw45eiv51x55; __utmc=56692281; tabname=null';
curl_setopt($this->ch, CURLOPT_COOKIE, $cookie);
curl_setopt($this->ch, CURLOPT_POST, true);
curl_setopt($this->ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($this->ch, CURLOPT_URL, $url);
$page = curl_exec($this->ch);
if(curl_errno($this->ch) <> 0)
{
throw new Exception(curl_error($this->ch));
}
return $page;
}