Skip to content

Instantly share code, notes, and snippets.

@yuvalif
yuvalif / SimpleHTTPPutServer.py
Last active December 3, 2018 09:47 — forked from fabiand/SimpleHTTPPutServer.py
A simple HTTP Server supporting put
View SimpleHTTPPutServer.py
# python -m SimpleHTTPPutServer 8080
import SimpleHTTPServer
import BaseHTTPServer
class SputHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_PUT(self):
print self.command + " " + self.path
print self.headers
self.end_headers()