Skip to content

Instantly share code, notes, and snippets.

@shieldwed
shieldwed / http_server.py
Created October 14, 2017 21:01
A simple python HTTP server which responds with the original request headers and request path
#!/usr/bin/env python
from http.server import BaseHTTPRequestHandler, HTTPServer
# HTTPRequestHandler class
class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
# GET
def do_GET(self):
# Send response status code
@borgar
borgar / .block
Last active June 27, 2022 21:03
Octopus
license: MIT
height: 578
border: no