Geoffrey Young wrote:
Ok. Working through the docs(converting to mp2-API) the following
question came to my mind:
Are there any rules, which (response-)method is in which module?
- no_cache is found in Apache::RequestUtil
- update_mtime/set_last_modified are found in Apache::Response
- content_t
Tom Schindl wrote:
You set it explicitly, as in your example. Again, you need to use the
special methods only for some of the headers. May be that section
should explicitly list all those special headers. Patches are welcome.
So far I've identified the following methods:
Apache::ResquestUtil
* n
> Ok. Working through the docs(converting to mp2-API) the following
> question came to my mind:
>
> Are there any rules, which (response-)method is in which module?
> - no_cache is found in Apache::RequestUtil
> - update_mtime/set_last_modified are found in Apache::Response
> - content_type
Stas Bekman wrote:
Tom Schindl wrote:
Stas Bekman wrote:
Tom Schindl wrote:
[...]
The very first URL, that you've quoted Tom, mentions that for certain
headers you ought to use special Apache methods. Which is the case
for content_type, no_cache and a few others. Apache does more things
than jus
Stas Bekman wrote:
[...]
You set it explicitly, as in your example. Again, you need to use the
special methods only for some of the headers. May be that section should
explicitly list all those special headers. Patches are welcome.
I forgot that we have a whole chapter on that topic:
http://per
Tom Schindl wrote:
Stas Bekman wrote:
Tom Schindl wrote:
[...]
The very first URL, that you've quoted Tom, mentions that for certain
headers you ought to use special Apache methods. Which is the case for
content_type, no_cache and a few others. Apache does more things than
just setting those hea
Stas Bekman wrote:
Tom Schindl wrote:
[...]
The very first URL, that you've quoted Tom, mentions that for certain
headers you ought to use special Apache methods. Which is the case for
content_type, no_cache and a few others. Apache does more things than
just setting those headers. Your suggesti
eck=0, pre-check=0",
"Pragma"=> "no-cache",
"Character-Set" => "windows-1251",
"Content-Type" => "text/html; charset=windows-1251",
};
return $self;
}
sub print {
my $self = shift;
Tom Schindl wrote:
Hi,
why are you not using the header functions provided by mod_perl, the
problem you're having is described here:
http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers
Things used here:
http://perl.apache.org/docs/2.0/api/APR/Table.html#C_set_
eck=0, pre-check=0",
"Pragma"=> "no-cache",
"Character-Set" => "windows-1251",
"Content-Type" => "text/html; charset=windows-1251",
};
return $self;
}
sub print {
my $self = shift;
print
", $self->{headers}->{$_}, "\n" for keys
%{ $self->{headers} };
print "\n";
}
package main;
use strict;
use warnings;
our $HEADERS = new Headers;
$HEADERS->print();
print 1;
-
> On Thu, 2004-07-08 at 12:09, Vadim
On Thu, 2004-07-08 at 12:09, Vadim wrote:
> Are there any way to dump all cached vars for scripts under mod_perl?
Can you explain what you mean by "cached vars"? Are you talking about
global variables?
- Perrin
--
Report problems: http://perl.apache.org/bugs/
Mail li
Vadim пwrote:
Are there any way to dump all cached vars for scripts under mod_perl?
perldoc Apache::Status ?
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Are there any way to dump all cached vars for scripts under mod_perl?
--
Vad
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
14 matches
Mail list logo