PHP Classes
elePHPant
Icontem

Browser: Retrieve Web pages emulating a browser

Recommend this page to a friend!

  Author Author  
Picture of Jon Gjengset
Name: Jon Gjengset <contact>
Classes: 10 packages by
Country: Norway Norway
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can be used to retrieve Web pages emulating a browser.

It can retrieve a given page, parse it and proceed retrieving the pages or content that would result of clicking on given links or submitting forms in the initial page.

The class provides functions to locate the links to click or form to submit either specifying a Xpath expression or searching page elements by attribute.

  Classes of Jon Gjengset  >  Browser  >  Download Download .zip .tar.gz  >  Support forum Support forum (6)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Browser
Base name: browser
Description: Retrieve Web pages emulating a browser
Version: 1.0
PHP version: 5.0
License: Freely Distributable
 
  Groups   Dependencies   Trackback   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image Testing Tools to help verifying that software works as expected View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
June 2009
Number 3


Prize: One book of choice by Manning
Sometimes you need to emulate the access of an user to a site, either for retrieving information, or for testing if a site is working properly.

This class makes it easy to build scripts that emulate the access of users to a sequence of pages, by clicking on links and submitting forms.

Manuel Lemos

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
Remote Form Download .zip .tar.gz Used for handling forms submission Recommended

  Pages that reference this package  
Browse the web with PHP
Ever so often, you come across a website that you would like to check regularly...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file browser.class.php Class The class sources
Accessible without login Plain text file browser.example.php Example An example of how the script can be used
Plain text file curl_http_client.php Class Curl_HTTP_Client slightly modified to allow cURL to follow redirects
Plain text file remoteform.class.php Class RemoteForm class for submitting forms. Also exists as a separate project on PHPClasses

Install with Composer Install with Composer - Download Download all files: browser.tar.gz browser.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.