PHP Classes

File: redirect.php

Recommend this page to a friend!
  Packages of Evert Ulises German Soto   cURL Easy and Fast   redirect.php   Download  
File: redirect.php
Role: Example script
Content type: text/plain
Description: If your webpage provided redirect to another url, you can get the final result without problem with this settings in the class.
Class: cURL Easy and Fast
Send HTTP request to remote servers using Curl
Author: By
Last change:
Date: 14 years ago
Size: 297 bytes
 

 

Contents

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

$options = array(
    "url" => "http://localhost/wArLeY_cURL/process_redir.php",
    "data" => "plain",
    "return_transfer" => "1",
    "redirect" => "1"
);

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

echo $resp;
?>