inwebdeveloper

Open Source Web Developers Resources

Simple PHP Proxy is a PHP script which aims to fill this gap by creating a layer between your JavaScript code and the remote domain to get data in HTML, XML or JSON formats.

With Simple PHP Proxy, your JavaScript can access content in remote webpages, without cross-domain security limitations, even if it’s not available in JSONP format.

Simple PHP Proxy

Simple PHP Proxy


Some features of Simple PHP Proxy:
- requested URLs can be white-listed & validated against a regex.
- optionally forward client cookies / SID to the remote server.
- optionally forward configurable User Agent to the remote server.
- requests can use either GET or POST request methods.
- remote data can be delivered as-is with all remote headers intact.
- remote data can be wrapped in a JSON/P structure that includes status codes & remote headers.
- if using JSON/P & remote data is valid JSON, it will be merged into the resulting data object.

Leave a Reply