Meowcenary / py_server

Simple python HTTP server for learning and discussion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • static_cgi_index_listing_server.py: can do everything static_pages_and_index_listing_server.py can do AND can display the output of python3 scripts that are under the root directory by entering the path to the script e.g localhost:8080/date.py

  • static_pages_and_index_listing_server.py: can display static html and txt pages to the browser on localhost:8080. If a directory path is used for the url it will list the contents of the directory unless there is a file "index.html" in which case it will display the file. Go to localhost:8080/test_index/ to see this.

  • date.py: use as example for demonstrating CaseCgiFile

  • basic_request.py: very simple example of requests library

  • test_index/: contains example index.html for demonstrating CaseDirectoryIndexFile

About

Simple python HTTP server for learning and discussion


Languages

Language:Python 98.0%Language:HTML 2.0%