Some additional info ...

Don't try to do it via NSMutableURLRequest & setValue:forHTTPHeaderField:, doesn't work, UIWebView overwrites it. When UIWebView will be replaced with WKWebView (in Pythonista), it will be much easier because of customUserAgent property.