is it possible to request UIWebView using user agent as Safari on iPhone?
Posted
by RAGOpoR
on Stack Overflow
See other posts from Stack Overflow
or by RAGOpoR
Published on 2010-04-05T18:53:42Z
Indexed on
2010/04/06
8:53 UTC
Read the original article
Hit count: 460
i try to request on my application via this url
http://reader.mac.com/mobile/v1/http%3A%2F%2Ffeeds.feedburner.com%2F9To5Mac-MacAllDay
and it also return that it available on iPhone only
how can i fix it?
mycode
NSMutableURLRequest *urlRequest = [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString: myurl]];
[urlRequest setValue: @"iPhone" forHTTPHeaderField: @"Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"];
[self.myWebView loadRequest:urlRequest];
© Stack Overflow or respective owner