Well, yes, I know that you can set the headers in the response; but 304 handling is two-way: you also have to read the headers from the Request to get the last time the Page was accessed by the user-agent. I don't see any header functions on the Request side though in WK...
C.
From: Aaron Held <[EMAIL PROTECTED]>
To: Costas Malamas <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [Webware-discuss] How can I access Request headers (implementing 304 responses)?
Date: Tue, 20 Jan 2004 10:28:38 -0500
the header is in the HTTPResponse obj.
ie:
self.response().setHeader('Content-Disposition','attachment;filename=Report.xls')
http://webware.sourceforge.net/Webware-0.8.1/WebKit/Docs/Source/Files/HTTPResponse.py.html
-Aaron
Costas Malamas wrote:
Hey all,
I am trying to implement 304/Not-Modified responses for WK, but I don't seem to be able to find a way to access the Request HTTP headers to get the If-not-Modified-Since and the Etag header (whose long name escapes me now). Is there an API for that? has anybody done 304s from WK before?
On an unrelaed note, FYI, I implemented Geoffrey's Cache on my WK installation just recently, and I have to say that memigo.com survived quite a large Slashdotting last week with hardly a hickup (to the point that my SSH connection to the server was slow but WK was pumping HTML as fast as ever). Props to everybody, and Geoffrey in particular.
Costas
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
