![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2006
Posts: 14
|
CGI scripts
I am trying to put a CGI script onto my site but I keep getting the following error:
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I have tried uploading a very simple script incase there is a bug in the script: #!D:\Perl\bin\Perl.exe -wT use strict; use CGI ':standard'; print "Content-type: text/html\n\n"; print "Hello world"; Any suggestions what I am doing wrong? Thanks in advance, Stephen |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Mar 2006
Posts: 14
|
I managed to get it working, it doesn't seem to like the '-' before the switch in the shebang line...
#!/usr/bin/perl -wT It prefers: #!/usr/bin/perl wT No idea why but it seems to be working !! (I have saved my scripts with the extension .pl) Stephen |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|