Tracy12 wrote: > In my mod_perl authentication module I have the following to get the url > without the ticket parameter > > my $uri_parsed = $r->parsed_uri; > my $unparsed = $uri_parsed->unparse(); > > but if the user hits the url as follows > > http://localhost/test it actually goes to > http://localhost/test/index.pl because of the Directory index configuration > in my httpd.conf (e.g DirectoryIndex index.pl) > > When I print the $unparsed it gives http://localhost/test but How can I get > the entire url.
you probably want $r->uri(). at this point, it's probably worth reading a book (or three) on mod_perl - all the nuances of the API are well covered in any of the volumes here: http://perl.apache.org/docs/offsite/books.html while all the existing books are biased toward mp1, once you understand the API and how mod_perl really works in general, porting the functionality to mp2 is pretty simple. --Geoff