Is there a simple way to specify the UA string for a particular http request, frame or iFrame within a single page?
For example, the main request to the server would come from...
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3
and a second request, whether to the originating (your) or another (XSS), from an iFrame or XHR, etc. would identify itself as
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5
I realize this is possible via myriad a proxy mechanism... but all such solutions involve convoluted session and cookie manipulation, etc.. Is this possible from a direct page-authorer's perspective and toolbox (ie. JS, page headers, even server configs, etc?)