webView: User-Agent incompability
I'm developing an iPhone application that invoke a web app SAP Business Server Page using the component webView (loadRequest method).
The error message: "<htmlb:content>: (*) This browser is not supported: for Design2003 the Interner Explorer as of 5.50 and the Mozila as of 1.75 are supported"
PS: Everything ok acessing this SAP BSP web app through Safari of iPhone's Simulator.
In short, i try change programmatically the webView's User-Agent to the same used in Safari of iPhone's Simulator ("Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16"), with properties and methods of webView's header using NSMutableDictionary and NSMutableURLRequest.
Do you have any idea to help me?
Tks a lot!