Re: Getting current url from request?

2006-09-05 Thread Geoffrey Young
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 the

Getting current url from request?

2006-09-01 Thread Bas Schulte
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?

Re: Getting current url from request?

2006-09-01 Thread Jonathan Vanasco
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

Re: Getting current url from request?

2006-09-01 Thread David Nicol
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, pre, (map {$_ is $ENV{$_}} sort keys %ENV),/pre; --

Re: Getting current url from request?

2006-09-01 Thread Philip M. Gollucci
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, pre, (map {$_ is $ENV{$_}} sort keys

Re: Getting current url from request?

2006-09-01 Thread Bas Schulte
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.

Current URL

2004-02-13 Thread Ian Joyce
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:

Re: Current URL

2004-02-13 Thread Tom Schindl
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 the

Re: Current URL

2004-02-13 Thread David Wright
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 URL that made

Re: Current URL

2004-02-13 Thread Ian Joyce
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

Re: Current URL

2004-02-13 Thread Geoffrey Young
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, etc)