The server requirements of a webmaster working on a website may vary from time to time. If they are constrained by a small size, minimal memory, speed and low costs, then tinyweb
offers a nice solution. Not only is the server extremely small
, but it also works without installation. This tinyweb
server can be easily run on the Windows OS by accessing it via command
. One of the best features about this server is that the webmaster can launch multiple tiny web browsers at any given point in time
. All these features make this a very handy tool on Windows for webmasters who feel restricted while working with their usual servers.
TinyWeb is a lightweight server for Windows, which works quickly and is very precise.
- It doesn't require installation
- Ultra-compact (only 59kb in size)
- Consumes little memory (less than 3 MB)
- Very fast
To download Tinyweb: http://www.ritlabs.com/en/products/tinyweb/
Direct Download: http://www.ritlabs.com/download/tinyweb/tinyweb.zip
To run TinyWeb
- You will have to create an index.html file:
- Example: c:\www\index.html
- Then add some content, e.g.:
<html><body>Hello, world !</body></html>
- In the command line, run:
How to Stop TinyWeb
- Open the Task Manager (CTRL+Alt+Del) and end the process tiny.exe
- Or, using the command line:
taskkill /F /IM tiny.exe
You can use TinyWeb for CGI:
- Create a file:
- Add the following code:
echo Content-type: text/plain
echo Hi !
echo Your IP ADDRESS is %REMOTE_ADDR% and your BROWSER is %HTTP_USER_AGENT%
You can launch several Tiny web servers simultaneously.
Note: there is also an SSL version, which is also free - TinySSL
Binay Files in CGI
Unlike Unix / Linux, the Windows console does not use binary data by default. If your CGI needs to send binary files you will need to force it into binary mode manually. For example in Python:
if sys.platform == "win32":
import os, msvcrt
Published by hyts78
Latest update on February 19, 2012 at 02:19 PM by Paul Berentzen.