TinyWeb Server on Windows

Last update on May 9, 2009 11:59 AM by hyts78
Published by hyts78

TinyWeb Server on Windows









TinyWeb is the very tiny server for windows, size: 20kb, which works really fast and is very precise...

Features:


• It doesn’t require installation
• Ultra-compact (59 KB only! Compact with UPX, it is more than 28 kb)
• Consumes little memory (less than 3 MB)
• Very fast
• Free

To download Tinyweb: http://www.ritlabs.com/en/products/tinyweb/
Direct Download: http://www.ritlabs.com/download/tinyweb/tinyweb.zip

To run TinyWeb


1. You will have to create an index.html file:
Example: c:\www\index.html

Then add:

<html><body>Hello, world !</body></html>



2. Running TinyWeb

Run on the command line: tiny c:\www
(Note: use the absolute path)

Check the result on :
http://localhost</code>

How to Stop TinyWeb


-Go on Task Manager (CTRL+Alt+Del) then end process of tiny.exe
-Or on the command line:
taskkill /F /IM tiny.exe

CGI


You can use TinyWeb to do CGI
Create a file:
c:\www\cgi-bin\test.bat

Add:

@echo off
echo Content-type: text/plain
echo.
echo.
echo Hi !
echo Your IP ADDRESS is %REMOTE_ADDR% and your BROWSER is %HTTP_USER_AGENT%


Go to: http://localhost/cgi-bin/test.bat

directory is the path containing your index.html. Either be an absolute path.
port is the port on which the server has to listen to (default: 80)
ip is the IP address on which the server has to listen to (default: all)

You can launch several Tiny web servers simultaneously.

Note that it is also a version SSL: TinySSL

It is also free: http://www.ritlabs.com/en/products/tinyweb/tinyssl.php

Binay Files in CGI


Unlike Unix / Linux, the Windows console does not default to binary data.
If your CGI must send binary files (images, ZIP ...) it is necessary in your CGI, forcing the binary mode.
For example in Python, there is:



import sys
if sys.platform == "win32":
    import os, msvcrt
    msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)

Links


http://www.ritlabs.com/en/products/tinyweb/features.php
http://www.ritlabs.com/en/products/tinyweb/install.php
Best answers for « TinyWeb Server on Windows » in :
Disabling True Vector Service under Windows XP ShowDisabling True Vector Service under Windows XP To shut down True Vector Service, Go to Menu “Start”> “Control Panel” and double-click on “Security Center”. In the below image, select “Windows Firewall” and choose...
How to use a driver ODBC 32 BITS under the Window 2003(64 bits)? ShowHow to use a driver ODBC 32 BITS under the Window 2003(64 bits)? You have a Windows 2003 server (64-bits) and you want to use a 32 bits ODBC driver: one that is usually found in the administrative panel for ODBC on Windows or an external...
Disable Search Service ShowDisable Search Service Go in Control Panel /Administrative Tools/Click on Services. In Services, right click on the service : Windows Search , then click on properties In the General Tab, in Startup Type choose...
Download PS3 Media Server ShowThis simple and free software is designed to connect PS3 to a computer in DLNA in for webradios, youtube and automatic encryption. It does not require any codec pack. This software supports all PS3 formats: MP3, JPG, PNG, GIF, TIFF and all types...
Download HFS (Http File Server) ShowHFS is a ultra-simple way to share files with friends. · Launch HFS · Slide above it the file to be shared. And that’s all ! The directory is accessible from any browser. It is ultra-simple and no installation is necessary (HFS is only...
Download Real VNC ShowRealVNC is CUSTOMER VNC (VIRTUAL NETWORK COMPUTING) allowing to take the remote hand on computers, if a waiter VNC is thrown on the distant machines. The present version of VNC is a free but restricted version. For this reason, they will be able to...
Installing a VPN server in Windows XP ShowAdvantages of a VPN The set-up of a virtual private network enables the secure connection of remote computers through an unreliable connection (Internet), as if they were on the same local area network. This process is used by a variety of...
Proxy and reverse proxy servers ShowProxy servers A proxy server is a machine which acts as an intermediary between the computers of a local area network (sometimes using protocols other than TCP/IP) and the Internet Most of the time the proxy server is used for the web, and when it...
Client/Server Environment ShowIntroduction to Client/Server Architecture Numerous applications run in a client/server environment, this means that client computers (computers forming part of the network) contact a server, generally a very powerful computer in terms of...