Post by syserror
Hi
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&xmlOn 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 :(
Help!
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"--16:48:49--
http://www.wowhead.com/?item=Demise&xml => `index.html?item=Demise&xml'
Resolving
www.wowhead.com... 208.43.25.11, 75.126.130.188, 75.126.130.186
Connecting to
www.wowhead.com|208.43.25.11|:80... connected.
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
fox@linuxbox:~$
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.