in reply to Re: self_url() w/o CGI in MP2
in thread self_url() w/o CGI in MP2

Will that also give you the parameters passed in? I've got some reports that need to change the display parameter for various URLS, but leave all the other parameters the same ... Or, would I have to rebuild the parameter string myself?

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Re: self_url() w/o CGI in MP2
by tcf22 (Priest) on Nov 21, 2003 at 16:40 UTC
    No, but if you are doing a GET, this shoud do it.
    my $self_url = "http://$ENV{SERVER_NAME}/$ENV{SCRIPT_NAME}?$ENV{QUERY_ +STRING}";
    If you are doing a POST, then you'll have to read in STDIN to get your parameters.

    - Tom