View Single Post
  #1 (permalink)  
Old September 11th, 2003, 09:56 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default text/plain forces download

I've got something weird going on with ASP/IE and I was wondering if anyone else has seen it. Basically, I'm trying to send plain text to the browser from an ASP page, but I just get a file download dialog when I run the page.

Here's a simple test page which exhibits this behaviour
<%@ Language=VBScript EnableSessionState=False %>
<% Response.ContentType = "text/plain"
When I browse to this page I just get a file download dialog. Its weird. I can browse to a text file and it displays just fine.

I tried telnet'ing to this page to see if any strange headers were being sent by ASP but I just got this standard looking stuff:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Thu, 11 Sep 2003 14:41:52 GMT
Connection: Keep-Alive
Content-Length: 4
Content-Type: text/plain
Cache-control: private

Just had a thought while I was typing this and tried it with Netscape 6.2 and it displayed the text "abcd" in the browser just fine, so it must be some weirdness in IE6.

Anyone know anything about it?
Reply With Quote