Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Problem with Apache and CGI returning text/plain

From: rebol665:ifrance at: 11-May-2002 11:04

Hi, 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 : (http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html). 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. Patrick ----- Original Message ----- From: "Bohdan R. Rau" <[ethanak--interclub--pl]> To: <[rebol-list--rebol--com]> 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 (Apache 1.3.20-2) http://mavra.linux.bielsko.pl/cgi-bin/heloreb.cgi ----- #!/usr/local/bin/rebol -c REBOL [] print "Content-Type: text/plain^/" print "Hello, I am the REBOL script" ----- BTW never use spaces before colon in headers (rfc2068)! Namarië! ethanak