Reputation: 335
friends..
Now, I 'm trying to get website title from the url.. To do that , I should get http content first....
I used stringWithContentsOfURL to get http contents according to this following example.. Reading HTML content from a UIWebView
When I try "http://www.apple.com" , I got correct results..
But, in case of "http://www.google.co.hk", I always get nil..
What's the problem in above code?
To get website contents always, how can I do that?
please help me...
thanks.
Upvotes: 0
Views: 154
Reputation: 8207
The problem is that URL is wrong. Try http://www.google.com.hk instead of http://www.google.co.hk
Upvotes: 1