click on link with curl php -


i want know how click on link curl in php. pass login page when want create new curl_exec click tag, cant thing. tag make xhr request data , pass form data , still have problem. note:my website want content curl asp.

$this->_ch = curl_init();          $this->config(); // normal config curl         if (!empty($this->_fields)) {             $fields = http_build_query($this->_fields, '', '&');             curl_setopt($this->_ch, curlopt_postfields, $fields);         } else {             curl_setopt($this->_ch, curlopt_post, false);         }         if($testparam !="")         {                        curl_setopt($this->_ch, curlopt_postfields, $testparam);         }         $result = curl_exec($this->_ch);         $this->_curlinfo = curl_getinfo($this->_ch);         $this->_lastresult = $result;         $this->_fields = array();         if (!$this->curlcheckerror()) {             $result = null;         }         return $result;   //send param   $params['__eventtarget']='ctl00$maincontent$radgrid1';   $newparam.='__viewstate='.$test['__viewstate']; 

. . . , send more param.

but still can't simulate click tag in url . idea or sample how click tag curl run script ajax..? need return value of link click curl. tnx lot.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -