From: Russell O. <ro...@uw...> - 2014-10-14 17:11:40
|
On 10/9/14 2:49 PM, Kevin Walzer wrote: > Russell, > > On 10/9/14, 3:49 PM, Russell Owen wrote: >> package require http >> >> set outname "saturn.jpg" >> set url >> "http://apod.nasa.gov/apod/image/1409/saturnequinox_cassini_7227.jpg" >> set out [open "temp" w] >> set token [::http::geturl $url -channel $out] >> close $out > > I see the bug, but have no idea what the problem is--I don't maintain > the http package and so wouldn't know where to begin debugging it. > > Any reason you are using a Tcl call instead of something from Python, > cf. urllib? It is a Tkinter application (naturally) and I want to display the progress of the download. Is it possible to safely do this with a Python http library? If so, that does sound like the best solution. For the record: the Tcl community jumped on this bug and fixed it for 8.5 and 8.6. I was very impressed! -- Russell |