Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
<?php
2
 
3
// Open the Curl session
4
if (!$_POST['url'])
5
	exit;
6
 
7
$session = curl_init(($_POST['url']));
8
 
9
 
10
$postvars = file_get_contents('php://input');
11
 
12
// Don't return HTTP headers. Do return the contents of the call
13
curl_setopt($session, CURLOPT_HEADER, false);
14
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
15
 
16
// Make the call
17
$response = curl_exec($session);
18
 
19
//header("Content-Type: text/html; charset=utf-8");
20
header("Content-Type: application/xml;");
21
 
22
// expects a json response and filters it
23
echo "/*" . $response . "*/";
24
curl_close($session);
25
 
26
?>
27