This is my first Lab in Computer Network (CSC10008) @ VNUHCM - University of Science, Fall 2020.
Watch the demo video here (Vietnamese).
- This is a simple webserver project demonstrating how socket works. Security issues ahead. e.g type http://localhost:{port}/server.py.
- Python 3.7.5
- Bootstrap v4.0.0
index.html: Login page.404.html: Not found page.files.html: Download page.infos.html: Profile page.server.py: Server file.
-
From
index.html, user log in to the system with usernameadminand passwordadmin. This action use the HTTP POST method.a. If user is logged in, redirect (HTTP/1.1 302) to
infos.html.b. Otherwise, HTTP/1.1 404 returned.
-
infos.htmlis the information of students worked on this project. -
files.htmldisplays a list of files that user can download. These files are delivered intransfer-encoding: chunkedformat, notcontent-length. -
Files to download are in a folder named
download.
- This project does not require session management & cookie management.
- This project is to create a new simple HTTP server, using socket, so I can't use any HTTP library.
This project is under The MIT License.