O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing a URL for testing

If you've set up a local HTTP server, create a file called version.txt in the root directory of the installed server. This file should contain a small piece of text such as "I am a file on localhost" or something similar. As you might have guessed, a real-life scenario could be to check whether there is an updated version of your game or application on the server. To test whether the server and the file are correctly set up, start a web browser and open http://localhost/version.txt. You should then see the file's content:

.

If this fails, it may be the case that your server does not allow you to display text files. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required