I am trying to download files from a site that requires htaccess - style authentication as well as a cookie, and am using python mechanize to download these files. is there a way to start writing before loading the whole file into memory?
edit: I'm using a mechanize.Browser to keep track of the auth/cookie, so either I need a way to use the Browser state when calling urlopen or a better way to user Browser.
edit2: wound up rewriting using urllib2, but am still mildly curious if there was an easy solution.