Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function post_0($url,$ua,$data){
- $ch=curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_URL=>$url,
- CURLOPT_POST=>1,
- CURLOPT_POSTFIELDS=>$data,
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_USERAGENT=>$ua,
- CURLOPT_TIMEOUT=>15,
- CURLOPT_CONNECTTIMEOUT=>15,
- CURLOPT_FOLLOWLOCATION=>1,));
- $res=curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function get_0($url,$ua){
- $ch=curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_URL=>$url,
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_USERAGENT=>$ua,
- CURLOPT_TIMEOUT=>15,
- CURLOPT_CONNECTTIMEOUT=>15,
- CURLOPT_FOLLOWLOCATION=>1));
- $res=curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function post_1($url,$header,$data){
- $ch=curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_URL=>$url,
- CURLOPT_POST=>1,
- CURLOPT_POSTFIELDS=>$data,
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_HTTPHEADER=>$header,
- CURLOPT_TIMEOUT=>15,
- CURLOPT_CONNECTTIMEOUT=>15,
- CURLOPT_FOLLOWLOCATION=>1,));
- $res=curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function get_1($url,$header){
- $ch=curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_URL=>$url,
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_HTTPHEADER=>$header,
- CURLOPT_TIMEOUT=>15,
- CURLOPT_CONNECTTIMEOUT=>15,
- CURLOPT_FOLLOWLOCATION=>1,));
- $res=curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function post_2($url,$header,$data,$cookies){
- $ch=curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_URL=>$url,
- CURLOPT_POST=>1,
- CURLOPT_POSTFIELDS=>$data,
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_HTTPHEADER=>$header,
- CURLOPT_COOKIEJAR=>$cookies,
- CURLOPT_COOKIEFILE=>$cookies,
- CURLOPT_FOLLOWLOCATION=>1,));
- $res=curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function get_2($url,$header,$cookies){
- $ch=curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_URL=>$url,
- CURLOPT_RETURNTRANSFER=>1,
- CURLOPT_HTTPHEADER=>$header,
- CURLOPT_COOKIEJAR=>$cookies,
- CURLOPT_COOKIEFILE=>$cookies,
- CURLOPT_FOLLOWLOCATION=>1,));
- $res=curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function post_($url,$ua,$data,$proxy,$port,$ptype,$cookies){
- $headers = array('Accept: gzip',
- 'Accept-Language: en-US,en;q=0.5',
- 'Accept-Encoding: gzip, deflate',
- 'Connection: keep-alive','referrer: '.$ref);
- $ch = curl_init();
- curl_setopt_array($ch, array(
- CURLOPT_URL => $url,
- CURLOPT_PROXY => $proxy,
- CURLOPT_PROXYPORT => $port,
- CURLOPT_PROXYTYPE => $ptype,
- CURLOPT_HTTPHEADER => $headers,
- CURLOPT_COOKIEFILE => $cookies,
- CURLOPT_COOKIEJAR => $cookies,
- CURLOPT_POST => 1,
- CURLOPT_POSTFIELDS => $data,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_USERAGENT => $ua,
- CURLOPT_TIMEOUT => 15,
- CURLOPT_CONNECTTIMEOUT => 15,
- CURLOPT_FOLLOWLOCATION => 1,
- ));
- $res = curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- function get_($url,$ua,$proxy,$port,$ptype,$cookies){
- $headers = array('Accept: gzip',
- 'Accept-Language: en-US,en;q=0.5',
- 'Accept-Encoding: gzip, deflate',
- 'Connection: keep-alive','referrer: '.$ref);
- $ch = curl_init();
- curl_setopt_array($ch, array(
- CURLOPT_URL => $url,
- CURLOPT_PROXY => $proxy,
- CURLOPT_PROXYPORT => $port,
- CURLOPT_PROXYTYPE => $ptype,
- CURLOPT_HTTPHEADER => $headers,
- CURLOPT_COOKIEJAR => $cookies,
- CURLOPT_COOKIEFILE => $cookies,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_USERAGENT => $ua,
- CURLOPT_TIMEOUT => 15,
- CURLOPT_CONNECTTIMEOUT => 15,
- CURLOPT_FOLLOWLOCATION => 1,
- ));
- $res = curl_exec($ch);
- curl_close($ch);
- return $res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement