Bas Schulte wrote:
> Hi,
>
> I sort of hoped I could simply get it directly from the Apache request
> object but apparently, I can't.
of course you can? if Apache knows it at all you can get to it from
mod_perl :)
see recipe 5.3 in the mod_perl developer's cookbook for the full
explanation of
Hi,
I sort of hoped I could simply get it directly from the Apache
request object but apparently, I can't.
Turns out I had to have a CGI instance anyway so I'm using $cgi->url
() now, works fine.
David Nicol wrote:
On 9/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
$r-> the_request will give you the HTTP header
Are not the standard CGI environment vars still available in modperl?
This code snip will dump them for your inspection:
print join "\n", "", (map {"$_ is $ENV{$_}"} sort k
On 9/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
$r-> the_request will give you the HTTP header
Are not the standard CGI environment vars still available in modperl?
This code snip will dump them for your inspection:
print join "\n", "", (map {"$_ is $ENV{$_}"} sort keys %ENV),"";
--
On Sep 1, 2006, at 1:53 PM, Bas Schulte wrote:
I may be getting a bit rusty but I can't figure out which method to
use to get at the current url from the Apache request object. $r-uri
() gives me the path but not the schema, host and port.
$r->unparsed_uri will give you the GET args
$r-> th
Hi,
I may be getting a bit rusty but I can't figure out which method to
use to get at the current url from the Apache request object. $r-uri
() gives me the path but not the schema, host and port.
Looking through perldoc Apache doesn't really give me a clue.
Anyone?