Currently only working configuration:
define("REMOVECHUNKS", 1); // This has to be defined, chunk output is not currently working
define("REWRITECONTENTLENGTH", 0); // Possibly optional
define( "PRINTNOHEADERS", 0 ); // Possibly optional
define("CGIENABLE", 0); // Possibly optional
Copying of cookies does not yet work correctly.
Instructions
include 'HttpRvp.php';
/*
- Hoststring as to PHP function "fsockopen"
- Hostport */
$rvpproxy = new HttpRvp($hoststring, $hostport);
/*
- $urlpath = "" // Part of URL path to append
- $httpextra = """ // Extra HTTP headers to pass (currently not working correctly)
- $hostname ="" // hostname to send to */
$ret = $rvpproxy->http_proxy_by_string( $hostname, $httpextra, $urlpath, $urlextra );
Do not put tabs or white spaces in start or end of PHP-file. Otherwice the headers are included in the message.
Currently only working configuration:
define("REMOVECHUNKS", 1); // This has to be defined, chunk output is not currently working
define("REWRITECONTENTLENGTH", 0); // Possibly optional
define( "PRINTNOHEADERS", 0 ); // Possibly optional
define("CGIENABLE", 0); // Possibly optional
Copying of cookies does not yet work correctly.
Instructions
include 'HttpRvp.php';
/*
$rvpproxy = new HttpRvp($hoststring, $hostport);
/*
$ret = $rvpproxy->http_proxy_by_string( $hostname, $httpextra, $urlpath, $urlextra );
Do not put tabs or white spaces in start or end of PHP-file. Otherwice the headers are included in the message.