Home > Archive > PERL Beginners > May 2006 > PERL-CGI to pass a file to multiple server
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PERL-CGI to pass a file to multiple server
|
|
| I BioKid 2006-05-29, 7:59 am |
| Hi all,
We have three web servers (say a,b,c) that take a similar file (xyz.txt) and
gives the results.
Now, we want to make a meta-server with three check-boxes and only one input
form.
The purpose is to accept a single file and run the 'checked' server and
provide the results as two separate links
in next two pages.
Is it possible to pass files to different CGI/perl program using one single
form ? How ?
Any sample codes / applications around ?
Thanks in advance !
(: Happy PERL :)
S Khadar
| |
| T Baetzler 2006-05-29, 7:59 am |
| I BioKid <mailto:ibiokid@gmail.com> asked:
> We have three web servers (say a,b,c) that take a similar=20
> file (xyz.txt) and gives the results.
> Now, we want to make a meta-server with three check-boxes and=20
> only one input form.
> The purpose is to accept a single file and run the 'checked'=20
> server and provide the results as two separate links in next=20
> two pages.
>=20
> Is it possible to pass files to different CGI/perl program=20
> using one single form ? How ?
> Any sample codes / applications around ?
The simple way would be to have a dispatcher CGI program on
your frontend server that accepts the files and parses the
CGI parameters the user sent and then does the necessary
request(s) on the user's behalf, storing the output locally.
The CGI and LWP manpages should get you started in your
endeavor.
HTH,
Thomas
|
|
|
|
|