PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Evert Ulises German Soto   cURL Easy and Fast   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Basic Use
Class: cURL Easy and Fast
Send HTTP request to remote servers using Curl
Author: By
Last change: the post fields are changed
Date: 12 years ago
Size: 357 bytes
 

Contents

Class file image Download
<?php
require("curl.class.php");

$options = array(
   
"url" => "http://localhost/wArLeY_cURL/process_page.php",
   
"data" => "plain",
   
"post" => "1",
   
"return_transfer" => "1",
   
"post_fields" => "nombre=Evert Ulises&apellidos=German Soto")
);

$obj = new wArLeY_cURL($options);
$resp = $obj->Execute();
echo
$obj->getError();

echo
$resp;
?>