On Tue, 24 Aug 1999, Chris Pratt wrote:
> Why not use resp.setDateHeader(), it's simpler and you don't have to
> worry about the format?
Well, I don't know what format setDateHeader uses, but the problem is
that you *do* need to worry about the format here. The spec says that
the Expires header must be in a specific format, including that the
timezone is GMT. I don't know if the later specs say anything about
it, but the JSDK API 2.0 docs don't indicate what format setDateHeader
users, so I think it's safer to do it yourself here.
> ----- Original Message -----
> From: Thor Heinrichs-Wolpert <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 24, 1999 8:21 AM
> Subject: Re: BACK-ing into trouble
>
>
> > > Does anyone out there know the correct syntax to set the Expires
> > > header? I cannot seem to get it to work correctly and cannot find any
> > > examples on the internet?
> >
> > resp.setHeader("Expires", "Tues, 01 Jan 1980 00:00:00 GMT");
> >
> > Thor HW
> >
>
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html