I'm trying to execute a script from a webpage like that:

<img src="<!--#exec cgi="cgi-bin/ftpstatus.cgi?127.0.0.1:21"-->">

but the result is
<img src="[an error occurred while processing this directive]">

the script itself is working allright and when I remove the "?127.0.0.1:21", the error is gone... but I need to pass a parameter to the script.