|
Introduction
To launch eValid with the UserAgent string set to an alternative
value, the best way to do that is with a special batch command
that specifies the needed UserAgent string for the device you want
to test.
Console Command
Here is the console command line (batch) invocation
that launches eValid
with the UserAgentString set to that for an iPad or iPhone.
You can launch this from a command prompt or you can set up this
batch file as a shortcut on your desktop, for your designated device.
start evalid -AGENT "Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; en) AppleWebKit/533.17.9 (KHTML, like Gecko)Version/5.0.2 Mobile/8F191 Safari/6533.18.5" exit |
start evalid -AGENT "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" exit |
Appearance After Launching
Running this batch command presets the UserAgent string to the
value shown above.
The entire eValid session will be recorded with eValid acting
as if it is the device whose user agent string you have specified.
In the example command line (batch) invocation above, you can see that the browser has been navigated to www.useragentstring.com to clearly show that eValid is reporting itself to the server as an iPad or iPhone device. Subsequently, we navigate to www.bing.com where you can see what is delivered by the server, depending on the different devices recognized.
iPad | iPhone |
(Click to see an iPad full-size image) |
(Click to see an iPhone full-size image) |
(Click to see an iPad full-size image) |
(Click to see an iPhone full-size image) |