Post by syserror
Ive been playing around with itemstats on my eqdkp board that pulls data from wowhead and Im getting some funny behaviour with the results:http://www.wowhead.com/?item=Demise&xml
On my browser I get the 2H weapon (working as intended)
When I wget/lynx from my server, or use curl/fopen etc. in php from my webserver I get Clutch of Demise (necklace) (not working as intended)
Whats going on here?
PS: Tried specifying the same IP on my webserver as here since I noticed www.wowhead.com
resolves to 1 of 3 addresses, but makes no difference :(
Post by Wanderingfox
I can confirm the behavior, except that my browser is returning clutch even when viewed with firefox. Here's some more info. Not sure if it's intended or not though.
Terminal output:fox@linuxbox:~$ wget "http://www.wowhead.com/?item=Demise&xml"
... 184.108.40.206, 220.127.116.11, 18.104.22.168
Connecting to www.wowhead.com
HTTP request sent, awaiting response... 200 OK
Length: 1,125 (1.1K)
100% 1,125 --.--K/s
16:48:50 (49.84 MB/s) - `index.html?item=Demise&xml' saved
File output:<?xml version="1.0" encoding="UTF-8"?><wowhead><item id="34177"><name><!]></name><level>154</level><quality id="4">Epic</quality><class id="4"><!]></class><subclass id="-3"><!]></subclass><icon displayId="48511">INV_Jewelry_Necklace_43</icon><inventorySlot id="2">Neck</inventorySlot><htmlTooltip><!]></htmlTooltip><json><!,sourcemore:,classs:4,subclass:-3]]></json><jsonEquip><!]></jsonEquip><link>http://www.wowhead.com/?item=34177</link></item></wowhead>
It appears to be returning data as if it was searching rather than being called on a specific item.
Calling the page with itemid instead of name seems to return properly however.