title: Python 3.2 - cookielib
body: <p>I have working 2.7 code, however there are no such thing as cookielib and urllib2 in 3.2? How can I make this code work on 3.2? In case someone is wondering - I'm on Windows.</p>
  
  <p><em>Example 2.7</em></p>
  
  <pre><code>import urllib, urllib2, cookielib
  
  cj = cookielib.CookieJar()
  opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
  
  login_data = urllib.urlencode({'login' : 'admin', 'pass' : '123'})
  
  resp = opener.open('http://website/', login_data)
  html = resp.read()
  
  # I know that 3.2 is using print(), don't have to point that out.
  print html
  </code></pre>