Skip to content
biozshock edited this page Sep 13, 2010 · 2 revisions

First of all i don’t want to use all of Zend Framework and i stripped out only classes this project need:


  • Zend_Controller_Request*

  • Zend_Http_Client*

  • Zend_Http_Cookie

  • Zend_Http_CookieJar

  • Zend_Http_Response

  • Zend_Uri*

  • Zend_Validate_Hostname*

  • Zend_Validate_Ip

Second step. You need have php-cURL installed to use this script from scratch. All you need to run it in example mode: download from it’s GIT repository
[email protected]:biozshock/PHPProxifier.git
if you are have what to proxy through this script please change $proxyingUrl variable. To enter in debug mode that shows headers, server variables, etc. you need to change $debug variable.

Third thing: to demonstrate feature is working i write script client.php to check all things are working nice. Also this script shows how to implement a page that will call proxy script. To use it you need to change $uri variable to point script to server.php script.
As i don’t want to write fully-featured page with all HTTP methods as selector i’ve just commented out methods you are need to call to get responce.

See comments and updates on my blog.

Clone this wiki locally