Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created August 26, 2014 21:29
Show Gist options
  • Select an option

  • Save kevinburke/bf5d6e30aa8588ba5b16 to your computer and use it in GitHub Desktop.

Select an option

Save kevinburke/bf5d6e30aa8588ba5b16 to your computer and use it in GitHub Desktop.
flask dummy app
from flask import Flask, request
app = Flask(__name__)
@app.route("/")
def hello():
print request.headers
return "Hello World!"
if __name__ == "__main__":
app.run()
Content-Length:
User-Agent: python-requests/2.3.0 PyPy/2.3.1 Darwin/13.3.0
Host: localhost:5000
Accept: */*
Content-Type:
Accept-Encoding: gzip, deflate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment