[Ilugc] [TIP] Python script of 23 lines to download file using http

  • From: gurukumara@xxxxxxxxx (Kumara Guru)
  • Date: Fri, 18 Nov 2011 11:08:44 +0530

On Fri, Nov 18, 2011 at 7:47 AM, Girish Venkatachalam
<girishvenkatachalam at gmail.com> wrote:

print "Connecting to ", host
conn = httplib.HTTPConnection(host)

urllib2 makes it real easy:
http://docs.python.org/howto/urllib2.html



Regards,
Kumaraguru

Other related posts: