title: How do I get the different parts of a Flask request's url?
body: <p>I want to detect if the request came from the <code>localhost:5000</code> or <code>foo.herokuapp.com</code> host and what path was requested.  How do I get this information about a Flask request?</p>