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
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?
Ian Joyce wrote:
> This may be day 1 stuff for most of you, but...
>
> What's the quckest way to determine the URL that made the current request in
> mod_perl 1?
you are probably looking for this:
my $uri = Apache::URI->parse($r)->unparse;
if you don't need a full uri (with the scheme, port,
I may have stated my question wrong.
Lets say the user enters the URL, http://www.test.org:93/sample/?test=true, into their
browser. How do I retrieve that URL?
I know how to get parts of it such as $r->path_info() or $r->uri(). Rather than
assemble each piece is there a method that just retur
> It's:
> 8<
> $r->connection->remote_ip
> 8<
That'd be the ip of the client making the request.
> Ian Joyce wrote:
> > This may be day 1 stuff for most of you, but...
> >
> > What's the quckest way to determine the U
It's:
8<
$r->connection->remote_ip
8<
See:
http://perl.apache.org/docs/1.0/api/Apache.html#_cr_E_gt_connection
Ian Joyce wrote:
This may be day 1 stuff for most of you, but...
What's the quckest way to determine th
This may be day 1 stuff for most of you, but...
What's the quckest way to determine the URL that made the current request in mod_perl
1?
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/
11 matches
Mail list logo