|
Pages: [1]
|
 |
|
Author
|
Topic: CGI - calling other scripts (Read 668 times)
|
|
leke
|
I was experimenting with calling other scripts into my CGI script and got this error... Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request... when trying to access http://127.0.0.1/cgi-bin/test.rHere it is #!C:/REBOL/REBOL.EXE --cgi --script REBOL[] do %rhp.r
print "Content-Type: text/HTML^/^/"
print {<html> <title>REMOTE ADDRESS TEST</title> <body>}
print "rhp.r test" print [display-day "and " remote-address]
print [</body></html>] %rhp.r is in the cgi-bin folder and I have no problem with other scripts that don't call external files. Anyone know what's going wrong?
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
1) Look into the server's error log to see what's actually happening 2) Maybe rhp.r is PRINTing something? Or erroring out. Try moving your Content-Type print before the DO to see that on the browser.
|
|
|
|
|
Logged
|
|
|
|
|
leke
|
I fixed it now. I errr added HALT at the bottom of %rhp.r to test it in the console and forgot to take it out. Works OK now. :huh:
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |