Skip to content

fjalex/tsws

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

tsws

TSWS, A Totally Simple Web Server in Bash and Netcat.

Getting Started

git clone https://github.com/dfletcher/tsws.git
cd tsws
./tsws 127.0.0.1 8080 &
chromium http://127.0.0.1:8080

You can use TSWS as a library:

TSWS_LIBRARY=1 . tsws
declare www_index_Content_Type="text/html; charset=utf-8"
function www_index {
  echo "<html><body>My index is better than the default.</body></html>"
}
tsws 127.0.0.1 8080

Have a look at the source code for many more details and discussion, including theory of opreation and creating dynamic content.

About

TSWS, A Totally Simple Web Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%