-
-
Save yuvalif/5c75a45090199664d618c302255d52d3 to your computer and use it in GitHub Desktop.
A simple HTTP Server supporting put
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() | |
self.send_response(200, "") | |
if __name__ == '__main__': | |
SimpleHTTPServer.test(HandlerClass=SputHTTPRequestHandler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment