[REBOL] Re: Problem with Apache and CGI returning text/plain
From: rebol665:ifrance at: 11-May-2002 11:04
Thanks for your script. It works for me too ! My problem was the .r
extension of my script. The same script with a .cgi works fine. I have found
an explanation for that in the Apache FAQ. For more détails see :
In brief, it is a "bug" in MSIE with HTTP text/plain document. MSIE do not
trust the explicit text/plain content-type and use the file extension
instead. In my case, the .r extension caused the CGI results to be
downloaded instead of displayed.
So I replaced the .r extension with .txt or .cgi. and now it works fine.
----- Original Message -----
From: "Bohdan R. Rau" <[ethanak--interclub--pl]>
Sent: Friday, May 10, 2002 7:27 PM
Subject: [REBOL] Re: Problem with Apache and CGI returning text/plain
On May 10 at 13:26 pat665 wrote:
Would you put this script somewhere in the Net?
I don't think I can help you if I won't see results.
Similar script is working OK on my machine
print "Content-Type: text/plain^/"
print "Hello, I am the REBOL script"
BTW never use spaces before colon in headers (rfc2068)!