iOS Safari - Replicating a specific user agent string type

Hey,


I work for a payment gateway and we are getting reports of problems where people can't complete payments through our payment page on some apple devices. We can't replicate the issue, but have the user agent strings from many devices that had the issue and I can see a trend.


When I try from an iPad or iPhone the user agent string looks like:

Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53

Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53


but the problem devices have user agent strings that look like:

Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) GSA/4.1.0.31802 Mobile/11D257 Safari/9537.53

Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_2 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) GSA/4.1.0.31802 Mobile/11A501 Safari/9537.53


Notice that the problem devices have "GSA/4.1.0.31802" instead of "Version/7.0" in the user agent string.


How do I replicate this? Everything I do seems the give me the "Version/7.0" string.


Thanks in advance,

Kevin

Posted on Aug 14, 2014 4:16 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 15, 2014 12:19 AM

Hey man, that's not what I was asking at all. I was trying to replicate the clients configuration so that I could replicate an error that they were seeing and resolve it.


Anyway, I was able to identify the GSA as the Google Search Appliance, i.e. the Google App. Some form submissions aren't working inside this app and it seems to be a problem on Google's side.

7 replies
Question marked as Top-ranking reply

Aug 15, 2014 12:19 AM in response to rccharles

Hey man, that's not what I was asking at all. I was trying to replicate the clients configuration so that I could replicate an error that they were seeing and resolve it.


Anyway, I was able to identify the GSA as the Google Search Appliance, i.e. the Google App. Some form submissions aren't working inside this app and it seems to be a problem on Google's side.

Aug 14, 2014 11:37 AM in response to kevpatts

I use Firefox. I've installed user agent switcher to allow my to change my user agent.

https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/


I do not know why your product is checking for this. You should be checking for capabilities of the browser.


I believe that iCab on ios lets you change the user agent.

What is my user agent?

http://whatsmyuseragent.com/


I got this on my Fedora 19 with Firefox 26.


User uploaded file

Sep 17, 2014 8:53 AM in response to kevpatts

Web Browser:

Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53

i am currently investigating the problem, in which I currently am dealing with a hack job like no other. As of today my Facebook is sending messagea to another server Or another domain.


Now I sent myself an email. In this email I viewed as per my email box added anomalies.


please forgive me and I am sure there is more to it. I have since sent myself email after email as per Facebook reset. Sadly non. Of come via gmail.


Return-Path: <davidstarborn@gmail.com>

Received: from [192.168.0.2] (cpe-72-226-24-105.nyc.res.rr.com. [72.226.24.105])

by mx.google.com with ESMTPSA id z32sm14243914qgd.40.2014.09.17.07.26.18

for <davidstarborn@gmail.com>

(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);

Wed, 17 Sep 2014 07:26:18 -0700 (PDT)

Subject: I'm coming where ya at where ya at

From: Star <davidstarborn@gmail.com>

Content-Type: text/plain;

charset=us-ascii

X-Mailer: iPhone Mail (11D257)

Message-Id: <58D9201D-57F7-46A2-BCB9-B1FB7657500F@gmail.com>

Date: Wed, 17 Sep 2014 10:26:18 -0400

To: Undisclosed Ent <davidstarborn@gmail.com>

Content-Transfer-Encoding: 7bit

Mime-Version: 1.0 (1.0)


if i emailed myself to the problematic email, on the same device to the email I am sending this to?

is this correct coding? Or is my email sent to a 3rd party? When I looked to the browser issue? Ii got the same error you received :

as on the top.


i Have lost in every way how to have a message that is fast. something stinks ..


WSince you are having the same error I was curious if you might have fixed the issue? Or maybe you can check to see if you possibly are dealing with the same issue






Sent from my iPhone

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iOS Safari - Replicating a specific user agent string type

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.