Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: Creating dynamically named CGIs

by ryan (Pilgrim)
on Feb 13, 2002 at 15:01 UTC ( #145176=note: print w/replies, xml ) Need Help??

in reply to Re: Creating dynamically named CGIs
in thread Creating dynamically named CGIs

Yes, most definately, thanks for the reinforcement.

Thanks to all who replied, most helpful, keeping to my usual style I normally post what I ended up doing and why:

I've gone with the $ENV{PATH_INFO} idea, because the header stuff caused double prompts and general mess in IE, worked perfectly in Opera though.

However, I'm not actually using the $ENV{PATH_INFO} contents, I'm just calling the CGI in that style and passing the required info via post such as below, 'run' is the CGI and 'cda' is an ExecCGI-d directory:
<form method="POST" action="/cda/run/"> <INPUT TYPE="image" src="/images/icon-zip.gif" ALT="Download surtron-0" BORDER="0"> <input type="hidden" name="mode" value="download"> <input type="hidden" name="file" value=""> </form>
This is almost a shortcut I guess, looks neat from the client side and works well in all cases. As long as I check for tainted posts it seems to do what I want.

I have now changed the above so that the filename hidden field passes a database id instead of the actual filename to make it less h4x0rable.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://145176]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2022-01-18 17:48 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (53 votes). Check out past polls.