Skip to content

Instantly share code, notes, and snippets.

@damdev
Created February 18, 2016 13:55
Show Gist options
  • Save damdev/6b1842a334eb2bc186ca to your computer and use it in GitHub Desktop.
Save damdev/6b1842a334eb2bc186ca to your computer and use it in GitHub Desktop.
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)
print('request.data: %s' % request.data)
print('=============================================================================')
return ''
if __name__ == '__main__':
app.run(host = '0.0.0.0', port = 8099, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment