checking reachability against a specific page in a URL

前端 未结 3 854
梦毁少年i
梦毁少年i 2020-12-15 11:59

After I have read the answer for this question I have found that using reachabilityWithHostName does not work with a URL such as this one: mySite.com/serv

3条回答
  •  心在旅途
    2020-12-15 12:39

    If you want to check reachability against a URL (the one usually used is against a hostname) just do a HEAD request using a NSURLConnection.

提交回复
热议问题