View Single Post
03-26-2007, 10:49 PM
#4
Xlorep DarkHelm is offline Xlorep DarkHelm
Status: I'm new around here
Join date: Mar 2007
Location:
Expertise:
Software:
 
Posts: 2
iTrader: 0 / 0%
 

Xlorep DarkHelm is on a distinguished road

  Old

I figured it out. you have to set the user agent to something it likes, so adding the line:

PHP Code:
ini_set('user_agent',"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2"); 
before you actually request the XML file will trick the armory system into believing you are using one of the more advanced, modern browsers (in this case, Mozilla FireFox). Then you will get XML rather than the XHTML Transitional code from their server.

Case in point, my sidebar on my personal website (http://darkhelm.org) has a section listing my WoW characters, done through PHP, using the data straight from the armory.