How to update file?
Jason Orendorff
jason at jorendorff.com
Fri Jan 11 18:06:05 EST 2002
> I need to update a local file from a web server if the file on this web
> server is newer then that on my local hard disk.
> Do you have any idea how it can be done?
The easiest way is to use wget.
http://www.gnu.org/software/wget/wget.html
If you want to do it in Python, you'd use httplib
http://www.python.org/doc/current/lib/module-httplib.html
and the If-Modified-Since header, defined in section 14.25 of
http://rfc.net/rfc2616.html
## Jason Orendorff http://www.jorendorff.com/
More information about the Python-list
mailing list