Location: PHPKode > projects > Volunteer Management OpenSource Software > vmoss_alpha02/inc/lib_proxy.php
<?php
/** 
* 
* PHP version 4 and 5
*
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
*
* @package    Sahana - http://sahana.sourceforge.net
* @author   Mifan Careem <hide@address.com>
* @copyright  Lanka Software Foundation - http://www.opensource.lk
*/

// Currently uses cURL to operate proxy

$url = $_GET['url'];
$parseurl = urldecode($url);

// open cURL session
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_URL,$parseurl);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);  

$xml = curl_exec($ch);
curl_close($ch);

header("Content-Type: text/xml");

echo $xml;
?>
Return current item: Volunteer Management OpenSource Software