Tutorial: HTTP basic authentication for Internet Control
In the Visualization Editor, the Internet and Multi-Internet controls support HTTP basic authentication. Some webcams support this kind of authentication, so it can be used get the live feed of a webcam in a visualization project.
This tutorial will show how to create an internet control and use it with HTTP basic authentication:
- Drag and drop an internet control (Internet or Multi-Internet) onto the page.
- Use the URL field in Object tab to define the URL with HTTP basic authentication. Preceed the hostname with username and password following this format:
http://<username>:<password>@<hostname>/<other-address-parts>
Let's assume the username is "root", the password is "topsecret", and the webcam's URL is http://172.16.1.160/axis-cgi/mjpg/video.cgi?fps=12&resolution=320x240
The final URL would be:Â http://root:topsecret@172.16.1.160/axis-cgi/mjpg/video.cgi?fps=12&resolution=320x240