title: 503 Reponse when trying to use python request on local website
body: <p>I'm trying to scrape my own site from my local server. But when I use python requests on it, it gives me a response 503. Other ordinary sites on the web work. Any reason/solution for this?</p>
  
  <pre><code>import requests 
  url = 'http://127.0.0.1:8080/full_report/a1uE0000002vu2jIAA/'
  
  r = requests.get(url)
  
  print r
  </code></pre>
  
  <p>prints out </p>
  
  <pre><code>&lt;Response [503]&gt;
  </code></pre>
  
  <p>After further investigation, I've found a similar problem to mine.
  <a href="https://stackoverflow.com/questions/20832298/python-requests-503-erros-when-trying-to-access-localhost8000">Python requests 503 erros when trying to access localhost:8000</a></p>
  
  <p>However, I don't think he's solved it yet. I can access the local website via the web browser but can't access using the requests.get function. I'm also using Django to host the server.</p>
  
  <pre><code>python manage.py runserver 8080 
  </code></pre>
  
  <p>When I use:
      curl -vvv <a href="http://127.0.0.1:8080" rel="noreferrer">http://127.0.0.1:8080</a></p>
  
  <pre><code>* Rebuilt URL to: http://127.0.0.1:8080/
  *   Trying 10.37.135.39...
  * Connected to proxy.kdc.[company-name].com (10.37.135.39) port 8099 (#0)
  * Proxy auth using Basic with user '[company-id]'
  &gt; GET http://127.0.0.1:8080/ HTTP/1.1
  &gt; Host: 127.0.0.1:8080
  &gt; Proxy-Authorization: Basic Y2FhNTc2OnJ2YTkxQ29kZQ==
  &gt; User-Agent: curl/7.49.0
  &gt; Accept: */*
  &gt;
  &lt; HTTP/1.1 301 Moved Permanently
  &lt; Server: BlueCoat-Security-Appliance
  &lt; Location:http://10.118.216.201
  &lt; Connection: Close
  &lt;
  &lt;HTML&gt;
  &lt;HEAD&gt;&lt;TITLE&gt;Redirection&lt;/TITLE&gt;&lt;/HEAD&gt;
  &lt;BODY&gt;&lt;H1&gt;Redirect&lt;/H1&gt;&lt;/BODY&gt;
  * Closing connection 0
  </code></pre>