PHP Classes

File: index_webpage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Evert Ulises German Soto  >  cURL Easy and Fast  >  index_webpage.php  >  Download  
File: index_webpage.php
Role: Example script
Content type: text/plain
Description: Retrieving and Save Request in File
Class: cURL Easy and Fast
Send HTTP request to remote servers using Curl
Author: By
Last change: the post fields are changed
Date: 2 years ago
Size: 482 bytes


Class file image Download

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

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

// You can redirect to open saved file or you can do anything...
header("location: ".$resp);