Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,473
There are 949 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

World Of Warcraft XML

Thread title: World Of Warcraft XML
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
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.

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed