IIS returns a server 500 error when user agent isn't set...
Fix: set strreams context for libxml
http://www.php.net/manual/en/function.libxml-set-streams-context.php