cURL

cURL node create

  1.  global $base_url;
  2.  
  3.   $ch = curl_init();
  4.   curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
  5.   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  6.   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

get remote image with curl

  1. <?php
  2. $ch = curl_init ("http://static.php.net/www.php.net/images/php.gif");
  3. curl_setopt($ch, CurlOPT_HEADER, 0);
  4. curl_setopt($ch, CurlOPT_RETURNTRANSFER, 1);

$this->curl_options and $curl_options for Upload user picture simpletest

  1. )
  2.   10082 => NULL,
  3.   10002 => 'http://gvs1/7drupal',
  4.   52 => true,
  5.   19913 => true,
  6.   10018 => 'simpletest300270',
  7. )
  8. )
  9.   80 => true,

Does cURL session starts its life as anonymous?

  1. <?php
  2. // $Id: security_scanner.module,v 1.2 2008/05/29 19:20:59 ingo86 Exp $
  3.  
  4.  
  5.  /**
  6.   *  cURL class
  7.   */
  8.   class drupal_security_scanner_test {
  9.  
  10.   var $ch;
Syndicate content