Skip to content

Instantly share code, notes, and snippets.

View lizottenj's full-sized avatar

Nick Lizotte lizottenj

View GitHub Profile
@lizottenj
lizottenj / reflect.py
Created January 3, 2018 14:20 — forked from 1kastner/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):