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

MS Internet Explorer, View and CGI

 [1/11] from: lmecir:mbox:vol:cz at: 28-Jan-2003 19:13


Hi all, did you notice, that if you install Rebol/View on your Windows machine, you may find out, that CGI scripts with .R suffix "work strangely"? Instead of browsing the result page Explorer offers you the ability to "download" the file. Regards -L

 [2/11] from: patrick:philipot:laposte at: 28-Jan-2003 22:01


Hi Ladislav, I had the same problem sometimes ago. I made a note for myself:
>The system asking for a directory to save hw-txt.r. >This error appears when there is no space after "Content-Type" in : > > print "Content-Type: text/plain^/^/"
And I remember too, that I had problem with 'newline in my script. A script made under Linux must be rewritten inder Windows. write %myscript.r read %myscript.r HTH Patrick

 [3/11] from: fuka:fuxoft:cz at: 28-Jan-2003 22:24


I think this is not a problem of Windows as such. It would seem more logical to have something to do with the configuration of your webserver. Ladislav Mecir wrote:
> Hi all, > > did you notice, that if you install Rebol/View on your Windows > machine, you may find out, that CGI scripts with .R suffix "work > strangely"? Instead of browsing the result page Explorer offers you > the ability to "download" the file. > > Regards -L >
-- Frantisek Fuka (yes, that IS my real name) (and it's pronounced "Fran-tjee-shek Foo-kah") ---------------------------------------------------- My E-mail: [fuka--fuxoft--cz] My Homepage: http://www.fuxoft.cz My ICQ: 2745855

 [4/11] from: lmecir:mbox:vol:cz at: 29-Jan-2003 12:42


Ahoj Franto, ----- Original Message ----- From: "Frantisek Fuka"
> I think this is not a problem of Windows as such. It would seem more > logical to have something to do with the configuration of your webserver.
Then how come, that both Mozilla and Konqueror behave normally? Moreover, the webserver does exactly what it should, i.e. it really sends the result of the CGI script and if I allow the MS Explorer to save the file, it doesn't save the script file, but the result of the script, which it should have displayed instead? Regards -L

 [5/11] from: bry:itnisk at: 29-Jan-2003 12:53


>Then how come, that both Mozilla and Konqueror behave normally?
Moreover,
>the webserver does exactly what it should, i.e. it really sends the
result
>of the CGI script and if I allow the MS Explorer to save the file, it >doesn't save the script file, but the result of the script, which it
should
>have displayed instead?
This might seem like sort of a strange question, does the .r file that is your cgi script have any querystring at its end? If not can you try and put a querystring at the end and see if IE's behavior changes. Not saying this will necessarily have any effect but try it.

 [6/11] from: lmecir:mbox:vol:cz at: 29-Jan-2003 13:02


Hi, I wrote:
> Ahoj Franto, > > ----- Original Message ----- > From: "Frantisek Fuka" > > > I think this is not a problem of Windows as such. It would seem more > > logical to have something to do with the configuration of your
webserver.
> Then how come, that both Mozilla and Konqueror behave normally? Moreover, > the webserver does exactly what it should, i.e. it really sends the result > of the CGI script and if I allow the MS Explorer to save the file, it > doesn't save the script file, but the result of the script, which it
should
> have displayed instead? >
Moreover, I must add, that the on the computers without View installed MS Explorer shows the CGI result correctly. Regards -L

 [7/11] from: bry:itnisk at: 29-Jan-2003 13:04


Do you have a link to this cgi script, I have IE and view so I'd like to see something.

 [8/11] from: lmecir:mbox:vol:cz at: 29-Jan-2003 17:02


Hi, ----- Original Message ----- From: "bryan"
> This might seem like sort of a strange question, does the .r file that > is your cgi script have any querystring at its end?
You can use any query string at the end if you use the GET query, but you can use even a POST method.
> If not can you try and put a querystring at the end and see if IE's > behavior changes. Not saying this will necessarily have any effect but > try it.
The script is: http://cosi.ksi.vslib.cz/tia-cgi/cgicheck.r and the same script is also http://cosi.ksi.vslib.cz/tia-cgi/cgicheck.cgi Regards -L

 [9/11] from: jeperk:swbell at: 29-Jan-2003 11:03


-- Unable to decode HTML file!! --

 [10/11] from: patrick::philipot::laposte::net at: 29-Jan-2003 20:22


Hi, Ladislav, I have found a note I wrote, (another one), when encountering the same problem, a long time ago. 8<- - - - - - - - - - - - - - - - - - - - - - On my Windows 98 machine, cgi-hw-txt.r does not work with Apache. Instead of displaying anything a download is proposed ! After investigation it seems to be a bug in MSIE. MSIE do not rely on the explicit "content-type" but on the file extension (here .r). A solution is to rename the script to cgi-hw-txt.cgi. 8<- - - - - - - - - - - - - - - - - - - - - - I wish I would be more precise, but I am not able to test this at the moment. Please look at this page that will give you more explanations: http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html HTH Regards Patrick

 [11/11] from: lmecir:mbox:vol:cz at: 30-Jan-2003 7:01


Thanks, Pat, ----- Original Message ----- From: "pat665"
> Please look at this page that will give you more explanations: > http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html
exactly as I expected, it is a MS Internet Explorer bug. Regards -L