Skip to content

aheissenberger/php-simple-proxy

 
 

Repository files navigation

Simple PHP Proxy: Get external HTML, JSON and more!

http:https://benalman.com/projects/php-simple-proxy/

Version: 1.6.2, Last updated: 2013-12-24

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. Of course, you'll need to install this PHP script on your server.. but that's a small price to have to pay for this much awesomeness.

Visit the project page for more information and usage examples!

Documentation

http:https://benalman.com/code/projects/php-simple-proxy/docs/

Examples

This working example, complete with fully commented code, illustrates one way in which this PHP script can be used.

http:https://benalman.com/code/projects/php-simple-proxy/examples/simple/

Release History

1.6.2 - (2013-12-24) Stop throwning errors when an option not used in get string, enable basic auth with user:key in a config file. 1.6.1 - (2013-2-18) fix handling POST Variables (use the same Content-Type, use RAW post data to fix converstion of "." in variable names to "_") 1.6 - (1/24/2009) Now defaults to JSON mode, which can now be changed to native mode by specifying ?mode=native. Native and JSONP modes are disabled by default because of possible XSS vulnerability issues, but are configurable in the PHP script along with a url validation regex.
1.5 - (12/27/2009) Initial release

License

Copyright (c) 2010 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.
http:https://benalman.com/about/license/

About

Simple PHP Proxy: Get external HTML, JSON and more!

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 46.1%
  • JavaScript 38.4%
  • PHP 15.5%