title: Python httplib.InvalidURL: nonnumeric port fail
body: <p>I'm trying to open a URL in Python that needs username and password.  My specific implementation looks like this:</p>
  
  <pre><code>http://char_user:char_pwd@casfcddb.example.com/......
  </code></pre>
  
  <p>I get the following error spit to the console:</p>
  
  <pre><code>httplib.InvalidURL: nonnumeric port: 'char_pwd@casfcddb.example.com'
  </code></pre>
  
  <p>I'm using urllib2.urlopen, but the error is implying it doesn't understand the user credentials.  That it sees the ":" and expects a port number rather than the password and actual address.  Any ideas what I'm doing wrong here?</p>