BrowserEmulator

Category: PHP - Miscellaneous

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: - 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 Date: 26 January, 2012


Browser Emulator - Fopen Method - Fsockopen Wrapper - BrowserEmulator - Fopen - Method

Homepage: http://www.bitfolge.de/

Developer: bitfolge.de

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Fopen() normally does not support a proxy server.

developer Developer: phpbuilder.com
license License: Freeware
operating systems Operating System: All


This script allows you to make permutation on a list like a set, but it could contain elements more than once.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This class supports simple scripting of a telnet session.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script presents the implemetation of eiffel like methods (methods with preconditions and postconditions).

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This simple generator function is used to call a function X times per second.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Constructor and Destructor Chaining script combines a constructor and destructor call during object creation/despt combin.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Decorator for main method script shows how to do the same thing with a decorator that makes the code much cleaner.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This class implements the RDQL language to query RDF documents stored in a MySQL database.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


This project provides a PHP class for facilitating the translation of data variables and objects into JavaScript code for client-side processing on a website.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All