Im trying to test a site which runs on Kentico CMS…
On testing on major browsers locally, it shows the website fine, but on webpagetest.org it redirects to the mobile version.
After initial debugging, i figured it is based on the user agent.
for example user agent of “Gloucester, UK - IE7 - DSL” is :-
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; PTST 2.252)
When i make a request to the site with this useragent from any browser it will be redirected to the mobile site, but if i delete the ; PTST 2.252 portion, it returns the normal website just fine.
On googling i couldnt find any documentation about the PTST portion.
Even on my decent trafficked website, only 4 out of 1071901 hits contained the term PTST .
Is this some user agent string unique to webpagetest?
Is there a way to mention a custom user-agent string while making a test?
FYI :-
[code]sajal@sajal-laptop:~$ HEAD -S -H ‘User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; PTST 2.252)’ http://www..com/home.aspx
HEAD http://www..com/home.aspx → 302 Found
HEAD http://www..com/mobile/home.aspx → 200 OK
[…]
sajal@sajal-laptop:~$ HEAD -S -H ‘User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)’ http://www..com/home.aspx
HEAD http://www..com/home.aspx → 200 OK
[…][/code]
Note: Second request has the PTST portion removed