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
from flask import Flask, request | |
import zlib | |
import xml.dom.minidom | |
app = Flask(__name__) | |
@app.route('/', defaults={'path': ''}, methods=['POST', 'GET']) | |
@app.route('/<path:path>', methods=['POST', 'GET']) | |
def catch_all(path): | |
print('path: %s' % path) |
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
from flask import Flask, request | |
import zlib | |
import xml.dom.minidom | |
app = Flask(__name__) | |
@app.route('/', defaults={'path': ''}, methods=['POST', 'GET']) | |
@app.route('/<path:path>', methods=['POST', 'GET']) | |
def catch_all(path): | |
print 'path: %s' % path |
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
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |