SHARE
TWEET

Untitled

a guest Apr 20th, 2010 341 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.   $url = "dirección_url";  
  4.   $postfield = 'campos_del_form';
  5.  
  6.   $options = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => true, CURLOPT_FOLLOWLOCATION => false, CURLOPT_ENCODING => "", CURLOPT_USERAGENT => "googlebot", CURLOPT_AUTOREFERER => true, CURLOPT_CONNECTTIMEOUT => 120, CURLOPT_TIMEOUT => 120, CURLOPT_MAXREDIRS => 10, CURLOPT_POST => 2, CURLOPT_POSTFIELDS => "$postfield");
  7.  
  8.  for($i=0;$i<=VALOR_MAXIMO;$i++)
  9.  {
  10.      $ch = curl_init($url);
  11.      curl_setopt_array($ch, $options);
  12.      $content = curl_exec($ch);
  13.      curl_close($ch);
  14.  }
  15.  
  16.  echo $content;
  17. ?>
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top