Link to home
Start Free TrialLog in
Avatar of Jean-François MORFIN
Jean-François MORFINFlag for France

asked on

Which URL to trigger this CGI ?

I wrote a CGI in perl a long ago (never wrote perl script for ten years ;-). It is  named "check.cgi" in the www/cgi-bin directory (i.e. www/cgi-bin/check.cgi)

It starts as follows:

#!/usr/bin/perl
use strict;
use CGI;
our $mailprog        = "/usr/sbin/sendmail -t";
our $respond         = "";
our $upto            = "";
our $data            = '';
our $db              = '';

# -----------------------------------------------------------------------------
# declare base
# -----------------------------------------------------------------------------
our @token;
our $q  = new CGI;
our %in = $q->Vars;
our %gp;

# -----------------------------------------------------------------------------
# get the inputs
# -----------------------------------------------------------------------------
our $dn       =lc($in{'dn'       }) || ''         ;
our $orig     =lc($in{'orig'     }) || ''         ;
our $tld      =lc($in{'tld'      }) || ''         ;

Open in new window

.....

Which URL should be entered to trigger it : "http://abc.de/...."  what the "...." should be ?

Thanks a lot !
Avatar of David Favor
David Favor
Flag of United States of America image

Whatever URL will trigger this CGI program will be determined by your Apache config.

Look for references related to ScriptAlias or however you have CGI invocation setup for your Apache config.
Avatar of Jean-François MORFIN

ASKER

I am sorry, but I do not understand ? May be I was not clear enough ? I reviewed the end of the question. My apache works with cgi's.
You asked, "Which URL should be entered to trigger it" + then answer is...

Your Apache config file determines this.

Might be any of the following...

foo.com/cgi-bin/check.cgi
foo.com/check.cgi
foo.com/check
foo.com/jumpin-jack-flash

Open in new window


The answer lies in your Apache config for the host serving your CGI script.
ASKER CERTIFIED SOLUTION
Avatar of Jean-François MORFIN
Jean-François MORFIN
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial