Quote:
|
Originally Posted by Pchan
SimpleXML indeed looks like an easier way to read it than by using DOM 
|
For the narrow range of things it's good at, SimpleXML is a godsend. As for getting the request, if you use Zend Framework, there's a really nice HTTP request class. I should know better than to type code into a thread directly without testing, but here goes:
Code:
<?php $client = new Zend_Http_Client('http://data.burningsea.com/servers');
$client->setParameterPost(array('apikey' => 'yourapikey', 'userId' => 'youruserid'));
$xml = $client->request('POST')->getBody(); ?>
That builds an HTTP request to the proper URL, adds the POST parameters, and grabs the XML response for caching, parsing, and tinkering with.