SPUG:CGI header question

Brian Hatch spug at ifokr.org
Thu Jun 19 13:34:17 CDT 2003



> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20030619/083e59f4/attachment.bin


More information about the spug-list mailing list