How would I go about passing a user agent when requesting an external xml feed from a 3rd party web service. Need to pass the user agent or else the feed produces an error. I am using DOM
<?php $request1 = 'http://www.abc123.com/webservice/this.xml'; $requestIT1 = $request1; $response1 = new DOMDocument(); $response1->load($requestIT1); ?>
Thanks in advance!