PHP Classes

File: index_proxy.php

Recommend this page to a friend!
  Classes of Evert Ulises German Soto   cURL Easy and Fast   index_proxy.php   Download  
File: index_proxy.php
Role: Example script
Content type: text/plain
Description: If have problems with proxys, you can set some arguments for use it.
Class: cURL Easy and Fast
Send HTTP request to remote servers using Curl
Author: By
Last change: the post fields are changed
Date: 11 years ago
Size: 430 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"),
   
"proxy" => "127.0.0.2:8081",
   
"proxy_userpwd" => "myuser:mypassword"
);

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

echo
$resp;
?>