I think my problem is like the one described here but I cannot quite understand the answer.
My app requires users to enter the URL of a site that contains .pbn
files. But the same URL which works manually, does not work when entered in the TextField in my app. In my example case self.urlNameInput.text
is http://www.atlantaduplicatebridgeclub.com/scorepost/2013/01/20130126ana.pbn
and the URL is not recognized.
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:self.urlNameInput.text] cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
Depending on whether I include or exclude 'http://' I get the following error messages.
Connection failed! Error - A server with the specified hostname could not be found. http://www.atlantaduplicatebridgeclub.com/scorepost/2013/01/20130126ana.pbn
Connection failed! Error - unsupported URL www.atlantaduplicatebridgeclub.com/scorepost/2013/01/20130126ana.pbn