|
|
Choosing A Webhost: |
subrequest->run() doesn't send HTTP headers: msg#00461apache.mod-perl
Hello list, i'm trying to run a subrequest from within a mod_perl content handler. The subrequest is build from the request's 'lookup_file()' method. Unfortunately, when i invoke the 'run()' method of the subrequest, no HTTP headers are sent (even so the documentation from 'Writing Apache Modules' claims that 'run()' "... will do everything a response handler is supposed to, including sending the HTTP headers and the document body." "... you must not send the HTTP header and document body yourself ..." Here's a short test case: sub handler { my $req = shift; my $filename = "/tmp/sample.html"; my $sub = $req->lookup_file($filename); $status = $sub->status; if($status == 200) { $ret = $sub->run; } return ret; } Furthermore, if the filename given to 'lookup_uri()' points to a directory, $sub->status will return '200' but '$sub->run()' will return '301' (which is o.k. since the filename should end with a '/' ...). Any ideas? Raf Mattes
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Browser doesn't stop loading a page, Martin Moss |
|---|---|
| Next by Date: | Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex, md |
| Previous by Thread: | RE: Browser doesn't stop loading a page, FFabrizio |
| Next by Thread: | Re: subrequest->run() doesn't send HTTP headers, Geoffrey Young |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |