On 19 Aug 2004, JZ said:
> I set Last-Modified header but it does not appear in HTTP request.
>
> ...
> self.response().setHeader('Last-Modified', time.strftime('%a, %m %b %Y
> %H:%M:%S GMT', time.gmtime()))
>
> I found HTTPServlet.py appears to be not finished (see method
> lastModified()). Instead of "return None" I added return time.time()
> but it did not help: Last-Modified header dissapeared (I checked it
> with telnet). Other headers are OK.
Hmmm.. Apache might be dropping the header because it's not formatted
properly. Returning "time.time()" would defintely not have a properly
formatted Last-Modified header. :)
If you call the header "First-Modified", does it show up?
Also, if you wanna save some time, use "curl -I [your url]" instead of
telnetting.
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss