#!/usr/bin/pythonimport urllibgoogle=urllib.urlopen('http://www.google.com')print 'http header:/n',google.info()print 'http status:',google.getcode()print 'url:',google.geturl()for line in google: print linegoogle.close()