posted 11 years ago
Suppose a webpage request is made made to a website, and that the called webpage can recognize if the request is from a mobile device.
Now suppose I have a javascript program that is NOT designed to run on a mobile device, but would like to call this website and request this webpage appearing as though it were a mobile device.
Right now if I just use location.href = url, I can retrieve the non-mobile webpage ok, but not the mobile page I want.
Does anyone know how to make a webpage request and set a flag or something else to make the webserver return the page designed for mobile devices?