(Tim Web Server)

Introduction

S-Web was developed to test and develop the app of X-Server to replace Apache, Tomcat, AMP, Lighttp, or Nginx.
S-Web is a small-footprint HTTP server implementation written in pure C language. It is indepedent, fast, functional, embeddable, cross-platform, featuring low resource consumption, high efficiency, good flexibility, scalability and portability. S-Web can be embedded in other applications (as a static or dynamic library) and works on multiple platforms ranging from server, desktop, game console and IoT hardware.
Specifically, S-Web uses very little in the way of machine resources. it is capable of serving multiple clients with a single thread, supporting GET and POST methods as well as handling requests of dynamic content generating (dynamic web page and page variable substitution), basic HTTP authentication, serial port access, integrated UDP server interacting with HTTP server and uploading file. The binary size of S-Web can be as small as 23KB (on x86 Linux). It works on x86 (Mircrosoft Windows/Linux), ARM, MIPS and any posix platforms, both embedded and standalone.
S-Web supports transparent 7-zip decompression. Web contents can be compressed into 7-zip archieves and clients can access the contents inside the 7-zip archive just like in a directory.
S-Web can also be used in audio/video streaming applications, or more general, VOD (video-on-demand) service. Currently a VOD client/server is being developed on Tim Web Server.

Usage

Command

run CMD in Mircrosoft Windows
"sWeb -h : display this help screen\n"
" -p : specifiy http port [default 5678]\n"
" -r : specify http document directory [default current directory]\n"
" -v : log status/error info\n"
" -l : specify log file\n"
" -m : specifiy max clients [default 32]\n"
" -M : specifiy max clients per IP\n"
" -s : specifiy download speed limit in KB/s [default: none]\n"
" -n : disallow multi-part download [default: allow]\n"
" -d : disallow directory listing [default ON]\n\n");

Data Type:

-p port (integer)
-r path (path to dir)
-l logfile (path to file)
-m maxclients (integer)
-d ListDirectories (boolean)

Example:

sWeb.exe -p 80 -r c:\WebRoot -l c:\sWeb.log -m 500 -d 1

Installation

Easy to deploy, no need to install, only a single executable file, just copy it to the web root directory, then double click.

Download

[Windows Version, 49KB]: https://s.tml.ink/sWeb.exe

[Linux Version, 23KB]: https://s.tml.ink/sWebLx

[Apple macOS Version, 28KB]: https://s.tml.ink/sWebMac


Copyright TML, Inc. © 2019 All rights reserved