simple socket code

Josiah Carlson jcarlson at uci.edu
Sun Oct 3 02:54:21 EDT 2004


> lenght=os.fstat(file.fileno())[stat.ST_SIZE]
> print lenght

> headers['Content-Lenght']=lenght

I am not experienced with webDav, but perhaps you are trying to spell
"length".  I believe the name of the header matters in this case.

 - Josiah



More information about the Python-list mailing list