This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
From: efflandt@xnet.com (David Efflandt) Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: efflandt@xnet.com Organization: XNet Information Systems, Inc. References: <39AC1C06.73AA8F49@oss-dev.gte.com> Message-ID: <slrn8qohha.vrh.efflandt@efflandt.xnet.com> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 206.125.69.81 Date: 30 Aug 2000 02:13:57 -0600 X-Trace: 30 Aug 2000 02:13:57 -0600, 206.125.69.81 Lines: 30 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!206.125.69.81 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92179 On 29 Aug 2000 13:35:02 -0600, Frank Yu Fang <yfang@oss-dev.gte.com> wrote: :Hi, : I don't know if this is the right place to post this. Thanks for any :help. : : I have a cgi script written in Perl. When I call it from Netscape, it :always works fine. But when I call it from IE5, if the script needs more :than 5-6 seconds before it spits the first bit of content (after :"Content-type: text/plain\n\n"), IE will prompt an annoying dialog :asking whether I want to open the file or save the file. : : Please drop some light on this. Brain dead MSIE considers text/plain to be ambiguous for some reason, even though it seems pretty clear to most of us. Maybe it is because this is often the default type for unknown file extensions from many servers. You could wait to print the Content-type until you are ready to return something. -- David Efflandt efflandt@xnet.com http://www.de-srv.com/ http://www.autox.chicago.il.us/ http://www.berniesfloral.net/ http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/ -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: djb0x7736d8a5@scream.org (Dan) Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: djb0x7736d8a5@scream.org References: <39AC1C06.73AA8F49@oss-dev.gte.com> Message-ID: <slrn8qtg84.vlb.djb0x7736d8a5@v2000.scream.org> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 204.137.133.236 Date: 31 Aug 2000 13:25:25 -0600 X-Trace: 31 Aug 2000 13:25:25 -0600, 204.137.133.236 Lines: 42 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!204.137.133.236 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92220 Frank Yu Fang <yfang@oss-dev.gte.com> wrote: : Hi, : I don't know if this is the right place to post this. Thanks for any : help. : : I have a cgi script written in Perl. When I call it from Netscape, it : always works fine. But when I call it from IE5, if the script needs more : than 5-6 seconds before it spits the first bit of content (after : "Content-type: text/plain\n\n"), IE will prompt an annoying dialog : asking whether I want to open the file or save the file. : : Please drop some light on this. *drops an expensive Tiffany lamp with a crash* Um... which is the desired result - do you want it to be saved, or displayed? I know Netscape tends to want to save any content-type it can't remember how to display; but if IE is saying "hmmm, this is taking more than a few seconds, it must be a download," that's really bizarre. Maybe it's just trying to be helpful, along the lines of "well, this isn't a web page, but if you really want me to show it to you, I can try. On the other hand, if you'd like me to save it..." If you want it to just save it... hmm. Maybe set it to some really arcane mime-type that you know the browser can't handle? text/frank or something silly like that? Just a thought. -Dan -- Dan Birchall - Palolo Valley, Honolulu HI - http://dan.scream.org Post your reviews; get paid: http://epinions.scream.org/join.html Free web-based e-mail: http://www.themail.com/ref.htm?ref=1163079 My address expires - take out the hex stamp if your reply bounces -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: brian@smithrenaud.com (brian d foy) Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: brian@smithrenaud.com (brian d foy) Organization: PANIX Public Access Internet and UNIX, NYC References: <39AC1C06.73AA8F49@oss-dev.gte.com> <slrn8qtg84.vlb.djb0x7736d8a5@v2000.scream.org> Message-ID: <brian-ya02408000R3108001842310001@news.panix.com> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 204.137.133.236 Date: 31 Aug 2000 15:41:11 -0600 X-Trace: 31 Aug 2000 15:41:11 -0600, 204.137.133.236 Lines: 22 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!feeder.via.net!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!204.137.133.236 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92224 In article <slrn8qtg84.vlb.djb0x7736d8a5@v2000.scream.org>, djb0x7736d8a5@scream.org posted: : Um... which is the desired result - do you want it to be saved, or : displayed? I know Netscape tends to want to save any content-type : it can't remember how to display; but if IE is saying "hmmm, this : is taking more than a few seconds, it must be a download," that's : really bizarre. IE is known not to pay attention to Content-type if it can avoid it. -- brian d foy CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html> Perl Mongers <URL:http://www.perl.org/> -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: djb0x7736f463@scream.org (Dan) Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: djb0x7736f463@scream.org References: <39AC1C06.73AA8F49@oss-dev.gte.com> <slrn8qtg84.vlb.djb0x7736d8a5@v2000.scream.org> <brian-ya02408000R3108001842310001@news.panix.com> Message-ID: <slrn8r2tj5.7kf.djb0x7736f463@v2000.scream.org> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 204.137.133.236 Date: 2 Sep 2000 14:43:11 -0600 X-Trace: 2 Sep 2000 14:43:11 -0600, 204.137.133.236 Lines: 27 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!204.137.133.236 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92264 brian d foy <brian@smithrenaud.com> wrote: : : : Um... which is the desired result - do you want it to be saved, or : : displayed? I know Netscape tends to want to save any content-type : : it can't remember how to display; but if IE is saying "hmmm, this : : is taking more than a few seconds, it must be a download," that's : : really bizarre. : IE is known not to pay attention to Content-type if it can avoid : it. Yes, I know (I had quite a bit of fun trying to serve up PDF's from a CGI script that did some user authentication, years back). After all, who needs a Content-type when you've got a file extension? *blamblam* -Dan -- Dan Birchall - Palolo Valley, Honolulu HI - http://dan.scream.org Post your reviews; get paid: http://epinions.scream.org/join.html Free web-based e-mail: http://www.themail.com/ref.htm?ref=1163079 My address expires - take out the hex stamp if your reply bounces -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: Jason W <jasonwea@crosswinds.net> Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: Jason W <jasonwea@crosswinds.net> References: <39AC1C06.73AA8F49@oss-dev.gte.com> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 204.137.133.236 Message-ID: <39b2277b$1_2@huge.aa.net> Date: 3 Sep 2000 03:27:07 -0600 X-Trace: 3 Sep 2000 03:27:07 -0600, 204.137.133.236 Lines: 42 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!204.137.133.236 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92275 and this would be why there are so many scripts using the ol' /cgi-bin/script.pl/myfile.ext method. Although I myself havn't had any trouble using the Content-Disposition header. But I do not know how to fix brians problem besides returning a text/html content-type and wrapping the text/plain output in a <PRE></PRE> set of tags. Not a particularly nice solution, but it works. I've done it myself when encountering this problem. Jason Dan <djb0x7736f463@scream.org> wrote: : brian d foy <brian@smithrenaud.com> wrote: : : : : : Um... which is the desired result - do you want it to be saved, or : : : displayed? I know Netscape tends to want to save any content-type : : : it can't remember how to display; but if IE is saying "hmmm, this : : : is taking more than a few seconds, it must be a download," that's : : : really bizarre. : : IE is known not to pay attention to Content-type if it can avoid : : it. : : Yes, I know (I had quite a bit of fun trying to serve up PDF's from a : CGI script that did some user authentication, years back). After all, : who needs a Content-type when you've got a file extension? *blamblam* : : -Dan : : -- : Dan Birchall - Palolo Valley, Honolulu HI - http://dan.scream.org : Post your reviews; get paid: http://epinions.scream.org/join.html : Free web-based e-mail: http://www.themail.com/ref.htm?ref=1163079 : My address expires - take out the hex stamp if your reply bounces : -- : PLEASE NOTE: comp.infosystems.www.authoring.cgi is a : SELF-MODERATED newsgroup. aa.net and boutell.com are : NOT the originators of the articles and are NOT responsible : for their content. You can SELF-APPROVE your first posting : by writing the word 'passme' on a line by itself. -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: Jacqui Caren <Jacqui.Caren@ig.co.uk> Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: Jacqui Caren <Jacqui.Caren@ig.co.uk> References: <39AC1C06.73AA8F49@oss-dev.gte.com> <39b2277b$1_2@huge.aa.net> Message-ID: <39B679FE.AA3A0E12@ig.co.uk> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 204.137.133.236 Date: 6 Sep 2000 10:16:19 -0600 X-Trace: 6 Sep 2000 10:16:19 -0600, 204.137.133.236 Lines: 28 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!nntp.primenet.com!nntp.gblx.net!nntp-cust.primenet.com!huge.aa.net!204.137.133.236 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92337 Jason W wrote: : : and this would be why there are so many scripts using the ol' /cgi-bin/script.pl/myfile.ext method. This no longer works under IIS as MS have disabled PATH_INFO and the only way to enable it seems to be to wrap your CGI in some VBScript... This hit is badly as our TEs and PEs both rely upon PATH_INFO for context nav. Jacqui p.s. Of course, if you avoid IIS and stick to a real HTTP and CGi compliant server such as Apache you will not run into problems with missing or ignored protocols on the server side... ;-) -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself. From: Jason W <jasonwea@crosswinds.net> Subject: Re: downloading, instead of showing cgi resluts on IE5 Reply-To: Jason W <jasonwea@crosswinds.net> References: <39AC1C06.73AA8F49@oss-dev.gte.com> <39b2277b$1_2@huge.aa.net> Newsgroups: comp.infosystems.www.authoring.cgi Approved: Self-Moderation <authoring-cgi@boutell.com> NNTP-Posting-Host: 204.137.133.236 Message-ID: <39b6dfd1$1_2@huge.aa.net> Date: 6 Sep 2000 17:22:41 -0600 X-Trace: 6 Sep 2000 17:22:41 -0600, 204.137.133.236 Lines: 27 X-Original-NNTP-Posting-Host: 204.157.220.254 Path: nntp.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!news-in.nibble.net!newsxfer.interpacket.net!news.aa.net!huge.aa.net!204.137.133.236 Xref: nntp.stanford.edu comp.infosystems.www.authoring.cgi:92352 : : and this would be why there are so many scripts using the ol' /cgi-bin/script.pl/myfile.ext method. : : : This no longer works under IIS as MS have disabled PATH_INFO and : the only way to enable it seems to be to wrap your CGI in some : VBScript... : : This hit is badly as our TEs and PEs both rely upon PATH_INFO : for context nav. : : Jacqui : : p.s. : Of course, if you avoid IIS and stick to a real HTTP and CGi : compliant server : such as Apache you will not run into problems with missing or ignored : protocols : on the server side... ;-) quite true there. I tried IIS once.. never again. I havn't seen microsoft get a server prog (www,ftp,telnet,etc) right yet. -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. You can SELF-APPROVE your first posting by writing the word 'passme' on a line by itself.