title: Issue with python httplib2 on linux
body: <p>I'm using the following snippet of code to call a web service, that requires basic auth: </p>
  
  <pre><code>import urllib
  import httplib2
  url='http://heywatch.com/download.json'
  body={'username':'my_username','password':'my_password'}
  header_data={'Accept': 'application/json'}
  http=httplib2.Http()
  response, content = http.request(url, 'POST', headers=header_data,     body=urllib.urlencode(body))
  </code></pre>
  
  <p>I'm running this same snippet on two different environments:</p>
  
  <p>Mac OSX 10.6.6, python version 2.6.1 - I get the correct response</p>
  
  <p>Linux - centos, python version 2.6.6 - I get the following exception:</p>
  
  <pre><code>.....
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 1129, in _conn_request
      raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
  ServerNotFoundError: Unable to find the server at heywatch.com
  </code></pre>
  
  <p>I've run this code on multiple linux flavors with different python versions and everything works fine.  I also noticed curl does not work properly on the particular machine.  The following curl command (which mimics the code above) works fine on my Mac OSX:</p>
  
  <pre><code>curl -u username:password -X POST -d "url=https://s3.amazonaws.com/my_video_to_be_encoded.mov" -d "title=new_video" -d "automatic_encode=true" -d "ping_url_after_encode=http://mydomain/video_encode_success" https://heywatch.com/download.json
  </code></pre>
  
  <p>but fails on the affected linux workstation with the following message:</p>
  
  <pre><code>curl: (6) Couldn't resolve host 'heywatch.com'
  </code></pre>
  
  <p>Any idea why this is happening?  It seems like some OS setting is incorrect.  If it helps, I'm using an <a href="http://aws.amazon.com/amis/4157" rel="nofollow">amazon version of linux</a> in amazon ec2, which is fairly locked down.</p>