Some websites will deliver different content to different programs that ask for the same page. In extreme cases, a website may deny access completely to some programs. When this happens, you can try to gain access to the site by “spoofing” as another browser.
setCustomUserAgent:—sets the user-agent string.
setApplicationNameForUserAgent:—sets the application name used in the user-agent string.
Note that some websites use the user-agent string to determine whether they support a client browser or not. If they don’t, they may send dumbed-down versions of pages or deny access to the website too. In that case, you can modify the user-agent string to pretend to be a popular browser and then access the website. Although, this may not work if the website expects your application to implement browser-specific extensions. For this reason, you should only consider spoofing as a last resort.