Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of lazy  >  Simple HTTP browser  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example file
Class: Simple HTTP browser
Access remote Web pages like a real browser
Author: By
Last change:
Date: 7 years ago
Size: 330 bytes
 

Contents

Class file image Download
<?php
include "http.lib.php";
$Browser=new http('http://www.google.com.hk');
var_dump($Browser->get('/'));
$Data['username']='nickname';
$Data['password']='passwd';
$Data['email']='example@net.cn';
$Browser->post('somepage',$Data);
$Download=new http();
$Download->send('./software/test.zip','./tmp/test.zip','link');
?>