blackberry/Ripple-UI — Issue #225: User Agent is not accurate for currently selected Device in Ripple
Author: astanley
Created: 2011-11-03 13:49:05+00:00
State: open

The value of the User-Agent header sent as part of HTTP requests does not reflect the device that is currently selected.

As a result, most Websites are not able to provide the mobile version of their websites to Ripple when loaded using the mobile emulator. This presents a challenge to developers and UI designers when testing their mobile content through Ripple

Use case
----------------------------
Developers should be able to load external Websites through Ripple, that that site should be able to identify the given device.

Expected results:
----------------------------
If the BlackBerry 9900 smartphone is selected, the user agent should be:
User-Agent: Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.300 Mobile Safari/534.11+

If the BlackBerry PlayBook Tablet OS is selected, the user agent should be:
User-Agent: Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.0.0; en-US) AppleWebKit/535.1+ (KHTML, like Gecko) Version/7.2.0.0 Safari/535.1+

Mozilla/5.0 (PlayBook; U; RIM Tablet OS 1.0.7; en-US) AppleWebKit/534.8+ (KHTML, like Gecko) Version/0.0.1 Safari/534.8+

Actual results:
----------------------------
User-Agent: Mozilla/5.0 (N; Windows NT 5.1) AppleWebKit/534.34 (KHTML, like Gecko) Ripple Safari/534.34