SPUG:CGI header question
Peter Darley
pdarley at kinesis-cem.com
Thu Jun 19 13:50:10 CDT 2003
Brian,
There it is in the documentation, right under virtual_host() which I didn't
see earlier either.
Thanks to everyone for their help. As always, you guys rock. :)
Thanks,
Peter Darley
-----Original Message-----
From: spug-list-admin at mail.pm.org [mailto:spug-list-admin at mail.pm.org]On
Behalf Of Brian Hatch
Sent: Thursday, June 19, 2003 11:34 AM
To: Peter Darley
Cc: Simon Wilcox; SPUG
Subject: Re: SPUG:CGI header question
> So, just to confirm, I would get this from the post or get request,
compare
> it to the timestamp of my image, and either return the image as normal or
> return a header with status of 304 and no associated data.
yup.
> A couple of questions: I can't find a way to get this info out of CGI.
It
> seems like the documentation isn't complete for CGI...
$something = $cgi->http('header-i-am-interested-in');
So you'd want
$rawmod = $cgi->http('If-Modified-Since');
I'm sure it's in the CGI man page somewhere.
--
Brian Hatch Being a UNIX administrator
Systems and is not an entry level
Security Engineer skill, but it can be an
http://www.ifokr.org/bri/ exit level skill.
Every message PGP signed
More information about the spug-list
mailing list