> So, try the following change to your code:
> >
> > $R->content_type ($data {mimetype});
> > $R->set_content_length ($data {size});
> > $R->header_out ('ETag',$data {md5});
>
> don't do that. use the $r->set_etag method instead, which is probably
> a bit safer than trying to figure ou
At 15:47 28.10.2002, =?UTF-8?B?Q3Jpc3TDs3bDo28gRGFsbGEgQ29zdGE=?= wrote:
Geoffrey Young wrote:
[snip]
> Also, I hate to whine, but despite the docs saying so, whatever value
> my script returns is completely ignored; I have to use $R->status ().
> I'm using Apache::Registry, in case that makes
* Cristvo Dalla Costa <[EMAIL PROTECTED]> [2002-10-25 20:29]:
> Hi, I'm trying to get my script to work with conditional get, however,
> when the browser should use the local copy it doesn't display
> anything, just telling me that the image's broken.
The Eagle boo
The doc on issuing correct http headers has returns with values all over
it:
http://perl.apache.org/docs/general/correct_headers/correct_headers.html
the examples in that document assume that you're using mod_perl
handlers, not Apache::Registry, though I admit that's not obvious
unless you
Geoffrey Young wrote:
[snip]
> Also, I hate to whine, but despite the docs saying so, whatever value
> my script returns is completely ignored; I have to use $R->status ().
> I'm using Apache::Registry, in case that makes any difference.
if some online documentation says otherwise, please let
[snip]
Also, I hate to whine, but despite the docs saying so, whatever value my
script returns is completely ignored; I have to use $R->status (). I'm
using Apache::Registry, in case that makes any difference.
Apache::Registry ignores the actual return code from your script,
using instead the
Randy Kobes wrote:
You may want to take a look at
http://perl.apache.org/docs/general/correct_headers/correct_headers.html
where, like Geoff suggested, it is strongly advised to
*not* use set_etag() for dynamic content. This page also
discusses the Last-Modified, Expires, and Cache-Control heade
On Sun, 27 Oct 2002, [ISO-8859-1] Cristóvão Dalla Costa wrote:
> Geoffrey Young wrote:
>
> > Kyle Oppenheim wrote:
> > > $R->content_type ($data {mimetype});
> > > $R->set_content_length ($data {size});
> > > $R->header_out ('ETag',$data {md5});
> >
> > don't do that. use the $r->set
Geoffrey Young wrote:
Kyle Oppenheim wrote:
> $R->content_type ($data {mimetype});
> $R->set_content_length ($data {size});
> $R->header_out ('ETag',$data {md5});
don't do that. use the $r->set_etag method instead, which is probably a
bit safer than trying to figure out Etag rules y
Kyle Oppenheim wrote:
I assume you are running this script under Apache::Registry (since your URLs
have .pl extensions). Apache::Registry compiles your code into a subroutine
and runs it using this code:
my $old_status = $r->status;
my $cv = \&{"$package\::handler"};
eval { &{$cv}(
ditions) != OK) {
$R->status($rc);
return;
}
$R->send_http_header;
unless($R->header_only) {
print $file->get ('data');
}
--
Kyle Oppenheim
Tellme Networks, Inc.
http://www.tellme.com
> -Original Message-
> From: Cristóvã
Hi, I'm trying to get my script to work with conditional get, however,
when the browser should use the local copy it doesn't display anything,
just telling me that the image's broken. I get the image from a
database, the snippet that sends it is this:
$R->content_type ($da
12 matches
Mail list logo