Skip to content

Instantly share code, notes, and snippets.

View cameronhotchkies's full-sized avatar

Cameron Hotchkies cameronhotchkies

View GitHub Profile
@cameronhotchkies
cameronhotchkies / post_sink.py
Created January 19, 2021 07:21
Python script for logging POST requests to disk
from http.server import BaseHTTPRequestHandler
import socketserver
import time
PORT = 9000
class SinkHandler(BaseHTTPRequestHandler):
def do_POST(self):
incoming = self.rfile