Find out if the URL is violated?

I have a url that the video should contain:

http: //img.epictv.compodcasts/Surf_Report_Tahiti_Take_2_podcast.mp4

But it seems to be broken (resource unavailable). Is it possible to find out that it is broken programmatically?

+6
source share
2 answers

If you want to check the url just do a HEAD request using NSURLConnection .

+5
source

The first thing I think about checking the URL was thinking that NSURLConnection could do it too (and virtually any ping process should be based on NSURLConnection). You can use this open-source for this.

Hope this answer satisfies you.

+1
source

Source: https://habr.com/ru/post/952104/


All Articles