- stream_context_create: documentation ( source)
- stream_get_contents: documentation ( source)
- fopen: documentation ( source)
<?php
$requestXML = '';
$arr = array('http'=>
array(
'method'=>'POST',
'follow_location'=>0,
'content' => $requestXML
)
);
$context = stream_context_create($arr);
$f = fopen('http://www.example.com', 'r', FALSE, $context);
echo stream_get_contents($f);