Skip to content

Instantly share code, notes, and snippets.

View unaimillan's full-sized avatar

Mike unaimillan

  • Russia, Innopolis
View GitHub Profile
@unaimillan
unaimillan / server.py
Last active July 2, 2019 20:33 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Forked from: https://gist.github.com/mdonkers/63e115cc0c79b4f6b8b3a6b797e485c7
"""
import logging
from http.server import BaseHTTPRequestHandler, HTTPServer
# Server address is a tuple of 'host' and 'port'
SERVER_ADDRESS = ("127.0.0.1", 8000)