PHP Classes

Browser: Retrieve Web pages emulating a browser

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 2,440 This week: 1All time: 1,591 This week: 571Up
Version License PHP version Categories
browser 1.0Freely Distributable5.0HTML, HTTP, Testing
Description 

Author

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.

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
Picture of Jon Gjengset
Name: Jon Gjengset is available for providing paid consulting. Contact Jon Gjengset .
Classes: 10 packages by
Country: Norway Norway
Age: 34
All time rank: 2291 in Norway Norway
Week rank: 420 Down3 in Norway Norway Down
Innovation award
Innovation award
Nominee: 3x

  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

Downloadbrowser-2012-06-20.zip 10KB
Downloadbrowser-2012-06-20.tar.gz 9KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Remote Form Download .zip .tar.gz Used for handling forms submission Recommended
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,440
This week:1
All time:1,591
This week:571Up
 User Ratings  
 
 All time
Utility:79%StarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1983