checking the validity of the URL
the HTTPConnection now lives in a QRunnable that is run in the main thread pool