I'm a new comer to these items so I'm not in a position to identify where precisely the problem lies.
I'm calling update.cgi in the form action of the html page named update.html. The cgi is responsible to update the file that is laying around the server.
However it does not update and i'm obtaining the error such as this by mistake logs :-

update.cgi: main::redirect1() called too early to check prototype at /opt/apache/html/cgi-bin/linux/update.cgi line 17., referer:

Appears like a Perl error. The redirect1() function is known as prior to it being defined/declared.