Skip to content

Instantly share code, notes, and snippets.

View marsavela's full-sized avatar
🏠
Working from home

Sergiu Marsavela marsavela

🏠
Working from home
View GitHub Profile
@marsavela
marsavela / reflect.py
Created April 26, 2019 18:15 — 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):