title: How to get Uber Python/Flask example to work
body: <p>I'm trying to make a web app using the Uber api (<a href="https://developer.uber.com/v1/tutorials/" rel="nofollow">https://developer.uber.com/v1/tutorials/</a>).
  In their tutorial they link to an example application on github with instructions to get it running. (<a href="https://github.com/uber/Python-Sample-Application" rel="nofollow">https://github.com/uber/Python-Sample-Application</a>). When I try running the sample application I get HTTP 400 errors. An example of the output that I get on the console is shown below.</p>
  
  <pre><code>(venv)192:Python-Sample-Application jason$ python app.py 
   * Running on http://127.0.0.1:7000/
  127.0.0.1 - - [05/Sep/2014 05:37:28] code 400, message Bad HTTP/0.9 request type     ('\x16\x03\x01\x00\xab\x01\x00\x00\xa7\x03\x03T')
  127.0.0.1 - - [05/Sep/2014 05:37:28] "??T   ??p},֤,??IknL?]????????C@?J??$?#?" 400 -
  127.0.0.1 - - [05/Sep/2014 05:37:28] code 400, message Bad HTTP/0.9 request type     ('\x16\x03\x01\x00\x9b\x01\x00\x00\x97\x03\x01T')
  127.0.0.1 - - [05/Sep/2014 05:37:28] "??T   ???=?-???????"u?Pg,??t?sBa`?J??$?#?" 400 -
  127.0.0.1 - - [05/Sep/2014 05:37:28] code 400, message Bad HTTP/0.9 request type ('\x16\x03\x00\x00E\x01\x00\x00A\x03\x00T')
  127.0.0.1 - - [05/Sep/2014 05:37:28] "EAT   ??^??????&lt;)?W?e-???\?U~?0:=?=&lt;/5" 400 -
  </code></pre>
  
  <p>I've pasted the instructions from the github project below.</p>
  
  <blockquote>
    <p>How To Use This</p>
    
    <ol>
    <li>Navigate over to <a href="https://developer.uber.com/" rel="nofollow">https://developer.uber.com/</a>, and sign up for an Uber developer account.</li>
    <li>Register a new Uber application and make your Redirect URI <code>http://localhost:7000/submit</code>  ensure that both the profile and history OAuth scopes are checked.</li>
    <li>Fill in the relevant information in the config.json file in the root folder and add your client id and secret as the environment
    variables UBER_CLIENT_ID and UBER_CLIENT_SECRET.</li>
    <li>Run export UBER_CLIENT_ID="YOUR_CLIENT_ID"&amp;&amp;export UBER_CLIENT_SECRET="YOUR_CLIENT_SECRET"</li>
    <li>Run pip install -r requirements.txt to install dependencies</li>
    <li>Run python app.py</li>
    <li>Navigate to <code>http://localhost:7000</code> in your browser</li>
    </ol>
  </blockquote>
  
  <p>On the Uber developer page I've checked all boxes for my app and set the redirect. In my <code>config.json</code>, I've added lines for the <code>UBER_CLIENT_ID</code> and <code>UBER_CLIENT_SECRET</code> fields. I've run the export command from step 4 and echoed both environment variables to confirm that the variables are set. I created a virtualenv to install the dependencies and then ran the pip install and python app.py instructions. I'm running OS x and have tried with both Chrome and Safari and both browsers say they fail to make a secure connection to localhost. </p>