Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

A simple python server that handles GET and POST requests.

Notifications You must be signed in to change notification settings

eHonnef/simple-get-post-python-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP python server

A simple python server that handles GET and POST requests.

Usage

Just start server.py and then send a request using client.py.

Some notes

I do not recommend to use in a real world application since it just serves as an example application and to do some homework :).
The GET responses returns a JSON type object (yup, all of it).
The POST returns a "OK I received your request and data" and then it writes a log to the JSON file.
The JSON file contains a timestamp in UTC and a random message (blank for now).

About

A simple python server that handles GET and POST requests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages