Unsupported URL in NSURLRequest Unsupported URL in NSURLRequest ios ios

Unsupported URL in NSURLRequest


Try to include appropriate url scheme to your url, e.g.

[NSURL URLWithString:@"http://www...


In my case I fixed it with this :

strURL = [strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

strURL contains the string with the URL.


In my case, I visit a service running on my own mac, so my url is 127.0.0.1:8080/list

After I add a http:// scheme. It works!

Now it is http://127.0.0.1:8080/list instead of 127.0.0.1:8080/list