- Home /
WWW on airport wifi with password
Hi,
I have some code to download a JSon from a server, and I was wondering something about wifi connections which require a password (as in airports): if I make a GET to my server on an airport wifi connection without being logged, what will be the result? Will I catch a www.error?
As I'm expecting a json, it would crash the app if I don't get what I'm expecting.
Any hints?
Nico
If you're not logged in, you should get an error yes, it will be unable to find the resource. If you expect something that www.error will not capture, wrap your code in a try/catch and handle the exception if thrown. The connection should be maintained by the host operating system(windows/mac/ios/android/etc), if error, throw a dialog instructing the user to connect to the internet/ensure there is an internet connection.
And if you're expecting json as a result, but know you may not "ALWAYS" get it, you need to catch that error and gracefully fail, apps crashing is unacceptable.
Your answer
Follow this Question
Related Questions
All file in folder from database 0 Answers
After updating to v2017.1, a www call returns "406 not acceptable" 2 Answers
Unity not passing space character to WWW url. 2 Answers
WWW with https resulting in SSL: couldn't create a context 0 Answers
How to load file from local NAS ( Windows and Android ) 0 Answers