in reply to Stuck

I'm not going to repeat what others have said on this thread, but in the event you want to explore other ways of writing your URL's, consider using the PATH_INFO variable. This would let you construct traditional-looking URL's that are really comprised of script arguments:
http://www.example.com/one/two/three/four.html
You could create a script called 'one' in the web server's docroot, and your script would receive the following in its $ENV{PATH_INFO}:
/two/three/four.html
You could even go a step further and use this in conjunction with typical CGI arguments:
http://www.example.com/one/two.html?arg1=one&arg2=two $ENV{PATH_INFO} is "/one/two.html" $ENV{QUERY_STRING} is "arg1=one&arg2=two"
CGI.pm will do all of this for you in a friendly fashion.

Replies are listed 'Best First'.
Re (tilly) 2: Stuck
by tilly (Archbishop) on Dec 16, 2000 at 22:20 UTC
    There is at least one case I know of where you don't really have a choice about using PATH_INFO.

    If you want to download a file on the fly to be read by Excel, with IE 4 and some versions of Excel it will break horribly if IE knows that it is dealing with a CGI script. The only workaround I know of is to hide the fact of a CGI script using PATH_INFO. (The actual bug is that the path to the temp file is split on spaces before being passed to Excel. Since that path often has "Temporary Internet Files" in it, this results in Excel not finding the temporary file with your data.)

Re: Re: Stuck
by Anonymous Monk on Dec 16, 2000 at 15:13 UTC
    Ok... so I didn't expect such a quick reply from you guys.. thanx a lot..
    the problem is with my server I guess... I checked all the variables in the %ENV hash.. only the QUERY_STRING apprears empty, I don't know why..
    and you guys who are telling me that it has repetitions.. I already know that.. and as you know I'm just testing..
    viewing the log?? I tried it.. it says no recent errors so that's why I don't know what is happening... I want to know if there is a utility for Perl offline like the PWS for the .asp
    and I said I am a newbie, so I don't know how to use CGI.pm
    I hope it works.. or else i will switch to JavaScript