NSURLSession and NSURLConnection both provide an API for interacting with various protocols, such as HTTP and HTTPS