NSURL Failed With Error NSURLErrorDomain “bad URL”

I got the following error when trying to connect to my web service using NSURL: Failed with error:¬†Error Domain=NSURLErrorDomain Code=-1000¬†“bad URL” My URL was a GET request and so had several parameters in it. At first, I tried to URL encode the spaces manually using %20 (you’ll have to use …