Which URL to trigger this CGI ?

versailles
versailles used Ask the Experts™
on
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 !
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
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.
versailleschercheur libre

Author

Commented:
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.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
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.
chercheur libre
Commented:
foo.com/cgi-bin/check.cgi?dn=xxx&tld=xxx&....

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial