yql / yql-tables

YQL is extensible using a table definition. This repository will hold community contributed definitions.

Home Page:http://developer.yahoo.com/yql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

thdoan opened this issue · comments

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?