Código
class PHPBot { function PHPBot (){ $ch = $this->ch; curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: */*', 'Accept-Language: en-us,en;q=0.5', 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7')); } private function act($url, $params = false){ $ch = $this->ch; if ($params != false){ } else return $r; } private function myurlencode($dict){ $r = ""; foreach($dict as $key => $value) return $r; } private function get_urls($context){ $query = '/http?\:\/\/[^\" ]+/i'; return $result[0]; } function get ($url){ return $this->act($url); } function post($url, $params){ return $this->act($url, $params); } }
Saludos


