Miniscript for Web Browser

Configure the Device

Websites are stored on a special device, which has ports HTTP and HTTPS opens a hostname (very likely).

Untitled

All web pages should be placed in the folder, which has WebRoot attribute. This folder should be the only one on the device. Such folders won't be visible in the address of pages.

Untitled

The start page, which will be open by default, when a user types "http://hostname", should have MainWebPage attributes. Very often such pages have an "index.html" name.

Untitled

Also, the letter case is important. "AdminPanleLogin.html" and "adminpanellogin.html" are different paths.

Untitled

The Page Structure

An HTML page can have any text content, however, it's expected to be an HTML page. The "curl" command will display and download any content of this data (metadata is an exception, more about it later). But the Web Browser - won't. Web browser requires the correct HTML frame for any page.

This is an example of such a frame:

<noparse>
<html>
<head>
<title>Title</title>
</head>
<body>
<p>Content</p>
</body>
</noparse>

Pay attention to this "<noparse>" tag. It will be ignored by the Web Browser, we need it for curl. It's desirable to cover all HTML content with this tag to have a plain terminal output.

There is another "service" tag - "metadata". This tag is used by Web Browser only, it will be ignored by curl. We need it for tags, which should be displayed only by Web Browser. The frame with this tag will look like this:

<noparse>
<html>
<head>
<title>Title</title>
</head>
<body>
<p>Content</p>
</body>
</noparse>
<metadata>

</metadata>