Correction; it seems that *sometimes* (I cannot quite replicate this
consistently) I can get an HTTP_IF_NOT_MATCH variable in the environ() dict.
To get this, I have to put an "ETag" header on a prior response, but I
don't consistently get it back. I.e.:
Request_1: Client requests a WK Page. No ETag/Last-Modified header
Response_1: WK sends back an ETag/Last-Modified header in the response
Request_2: The client sends the If-Not-Match/If-Not-Modified-Since headers
that correspond to Response_1's headers. However, I only get the
If-Not-Match header in self.request().environ() dict only intermittently.
I think it could be that Apache may be intervening in Response_1, trying to
enforce the ETag. Actually, I think the WK adapters are a bit buggy here...
C.
>From: "Costas Malamas" <costasm@...>
>To: gtalvola@..., webware-discuss@...
>Subject: RE: [Webware-discuss] How can I access Request headers
>(implementing 304 responses)?
>Date: Wed, 21 Jan 2004 22:49:15 +0000
>
>
>Yep; there doesn't seem to be anything there, except some of the more
>common headers (user agent, client IP, etc).
>
>C.
>
>
>
>
>>From: Geoffrey Talvola <gtalvola@...>
>>To: webware-discuss@...
>>Subject: RE: [Webware-discuss] How can I access Request headers
>>(implementing 304 responses)?
>>Date: Wed, 21 Jan 2004 14:39:51 -0500
>>
>>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?
>>
>>Did you look in self.request().environ()? There are a bunch of HTTP_*
>>variables there, passed in by mod_webkit.
>>
>>- Geoff
>>
>>
>>-------------------------------------------------------
>>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
>>Webware-discuss@...
>>https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>_________________________________________________________________
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>http://join.msn.com/?page=features/virus
>
>
>
>-------------------------------------------------------
>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
>Webware-discuss@...
>https://lists.sourceforge.net/lists/listinfo/webware-discuss
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
|