Pablo Software Solutions Forum Index Pablo Software Solutions

 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

perl program with parameters not found

 
Post new topic   Reply to topic    Pablo Software Solutions Forum Index -> Quick 'n Easy Web Server
View previous topic :: View next topic  
Author Message
greenhouse



Joined: 28 Sep 2007
Posts: 22
Location: New Hampshire

PostPosted: Thu Nov 08, 2007 6:44 pm    Post subject: perl program with parameters not found Reply with quote

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>&nbsp;</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>&nbsp;</p>

Any advice?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1469

PostPosted: Fri Nov 09, 2007 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
greenhouse



Joined: 28 Sep 2007
Posts: 22
Location: New Hampshire

PostPosted: Sat Nov 10, 2007 10:00 am    Post subject: Reply with quote

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
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1469

PostPosted: Sat Nov 10, 2007 7:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Pablo Software Solutions Forum Index -> Quick 'n Easy Web Server All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SwiftBlue Theme created by BitByBit
Powered by phpBB © 2001, 2002 phpBB Group