>>> c = httplib.HTTPConnection("localhost") >>> c.connect() >>> c.request('GET', '/ubuntu-7.04-desktop-i386.iso') >>> r = c.getresponse() >>> f = open('/dev/null', 'w') >>> f.write(r.read(1048576*7)) ^-- takes 10s from pressing enter on last command until command returns