If THE SAME COMMAND is run in the address bar (i.e. [myserver.com...] - it works OK - so it's something to do with the POST method I guess?
Worse still - we have another cgi script running in the same directory - and that works just fine using forms with the POST method!
Any ideas?
Create a .BAT file that sets up the environment vars.
Use a pipe to simulate input (by the post method).
It should look something like this.
@path %path%;D:\perl\bin\;set SERVER_NAME=www.domain.com
set HTTP_REFERER=http://www.domain.com/test.html
set QUERY_STRING=name1=value1^&name2=value2
perl <TestData.txt -w perlscript.pl
@echo.
pause
I develop my scripts like this before uploading.
Kaled.