Method of detecting a valid internet connection
Posted: Wed Mar 30, 2011 2:07 pm
I am looking to see if there is a method of determining a valid connection to the internet. (desktop app)
Since, I have content I want to display inside an app, if there is a connection, however if there is no connection I need to be able to show default content in place of live content.
This is so that there would be no content issues or perhaps say a 404 or other error code.
I suppose that you could ping a URL and determine if there is a valid status code, HTTP Status Codes 200 would indicate a valid internet connection.
someone else posted about detecting an iOS connection to wifi, I wonder if you could do the same thing in iOS?
Any thought, suggestions, ect, thanks in advance.
Since, I have content I want to display inside an app, if there is a connection, however if there is no connection I need to be able to show default content in place of live content.
This is so that there would be no content issues or perhaps say a 404 or other error code.
I suppose that you could ping a URL and determine if there is a valid status code, HTTP Status Codes 200 would indicate a valid internet connection.
someone else posted about detecting an iOS connection to wifi, I wonder if you could do the same thing in iOS?
Any thought, suggestions, ect, thanks in advance.