title: urllib2.HTTPError: HTTP Error 503: Service Unavailable
body: <p>I am getting the following exception:</p>
  
  <pre><code>file "/usr/lib64/python2.6/urllib2.py", line 518, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 503: Service Unavailable
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>opener = urllib2.build_opener()
  opener.addheaders = [('User-agent', 'Mozilla/5.0')]
  response = opener.open(filePath)
  logText = response.read();
  </code></pre>
  
  <p>Moreover, I tried the following code as well:</p>
  
  <pre><code>response = urllib2.urlopen(filePath)
  logText = response.read();
  </code></pre>
  
  <p>I am still getting the said error.</p>
  
  <p>However, I can access the <code>filePath</code> i.e. the url from windows machine using any browser. But I cannot access the same <code>filePath</code> i.e. the URL from the linux machine where I am executing my Python script. Moreover, from this linux machine I cannot even open a web browser.</p>
  
  <p><strong>EDIT:</strong> URL looks like this: <a href="http://tweb.mk.ca.am.polik.se/executions/6061/60583/logs/screenlog.ob1110.191120.txt" rel="nofollow">http://tweb.mk.ca.am.polik.se/executions/6061/60583/logs/screenlog.ob1110.191120.txt</a></p>
  
  <p>However, as I am able to access this URL from the windows machine that's why I don't think that there is any problem at the server.</p>
  
  <p>Thanks!!</p>