| View previous topic :: View next topic |
| Author |
Message |
greenhouse
Joined: 28 Sep 2007 Posts: 22 Location: New Hampshire
|
Posted: Thu Nov 08, 2007 6:44 pm Post subject: perl program with parameters not found |
|
|
The following html line reports file not found in server trace while trying to execute the perl program counter.pl.
<p class="style2"><script language="javascript" src="counter.pl/agcount.cnt?text&digits=6"></script> </p>
However, the following line will execute the perl program. The difference is I have removed the program parameters.
<p class="style2"><script language="javascript" src="counter.pl"></script> </p>
Any advice? |
|
| Back to top |
|
 |
admin Site Admin
Joined: 13 Apr 2005 Posts: 1467
|
Posted: Fri Nov 09, 2007 10:38 am Post subject: |
|
|
| Please noter tha the URL is not parsed by the server, this the task of the browser. After the browser has successfully parsed the url, it will request the page on thre server. |
|
| Back to top |
|
 |
greenhouse
Joined: 28 Sep 2007 Posts: 22 Location: New Hampshire
|
Posted: Sat Nov 10, 2007 10:00 am Post subject: |
|
|
As stated in a previous message, that while QnE web will not respond to the following cgi call:
<script language="javascript" src="counter.pl/agcount.cnt?text&digits=6"></script>
it will respond to this line:
<script language="javascript" src="counter.pl?agcount.cnt&text&digits=6"></script>
Note the two changes of the "/" to a "?" and the "?" to a "&".
The odd thing is, that another web server will respond only to the former and not the latter. |
|
| Back to top |
|
 |
admin Site Admin
Joined: 13 Apr 2005 Posts: 1467
|
Posted: Sat Nov 10, 2007 7:32 pm Post subject: |
|
|
This code looks ok:
<script language="javascript" src="counter.pl?agcount.cnt&text&digits=6"></script>
counter.pl/agcount.cnt?text&digits=6 is not a valid URL unless counter.pl is a folder |
|
| Back to top |
|
 |
|