Skip to content

Instantly share code, notes, and snippets.

View alatui's full-sized avatar

Master Chief alatui

  • Ireland
View GitHub Profile
@alatui
alatui / reflect.py
Created May 10, 2018 13:19 — forked from huyng/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 BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):