BrowserEmulator 2.0.1

Some web sites (like IMDb) prevent external scripts from parsing their contents by denying request without a user-agent string. Though this can be circumvented by manually sending the necessary headers, this is usually too complicated.
This BrowserEmulator class with its methods fopen and file wraps the fsockopen calls and sends all the necessary headers before returning a file handle usable with any PHP function.

As a side-effect, you may be able to break the restrictions of allow_url_fopen = Off with these functions!

Features of BrowserEmulator:
- completely transparent wrapper for fsockopen
- PHP-like interfaces: BrowserEmulator::fopen (corresponds to fopen) and BrowserEmulator::file (corresponds to file)
- usable with all PHP file handling methods (fgets and so on)
- can send GET or POST requests
- custom header lines can be sent
- POST data can be sent
- Basic HTTP Authentication
- custom destination port numbers
- show last HTTP response

License type: GPL - GNU Public License
Date added: 10 years, 10 months 16 days ago | Last updated: 10 years, 10 months 16 days ago

More popular Networking Tool

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

browseremulator
Hot Scripts
Sponsors