yql / yql-tables

YQL is extensible using a table definition. This repository will hold community contributed definitions.
http://developer.yahoo.com/yql
724 stars 416 forks source link

data.headers.xml: mobile UA string not working for Amazon #470

Open thdoan opened 8 years ago

thdoan commented 8 years ago

I just tried the query below using an iPhone UA string, but the returned HTML content was still for the desktop version.

select * from {table} where url="http://www.amazon.com/" and ua="Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"

The interesting thing is it worked (I got the mobile version) if I changed url to http://www.yahoo.com/. Maybe some sites like Amazon is looking for another HTTP header that needs to be set in order for it to be identified as a mobile device?