Closed Bug 159490 Opened 23 years ago Closed 23 years ago

rar files opened as plain text .. bad

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: piotr, Assigned: Matti)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020723
BuildID:    2002072308

I've had this happen all over the place .. any website hosting a .rar file for
download .. mozilla will open said file as plain text instead of offering to
download and save it like it would with a zip file

Reproducible: Always
Steps to Reproduce:
1.put/locate a rar file on a web server
2.try to download it by clicking a link to it
3.it shows up a plain text

Actual Results:  file shown up as plain text .. ot really useful for a binary file

Expected Results:  open a file save dialog
Please give a URL to an actualy .rar file?
Here is an url of a rar file .. its hosted off my server .. but its tiny so it
should be ok .. tested it too .. same effects .. (tested with IE and it opened
the file save dialog)

(Url attached in the URL field of the report)
Yup.  Just like I thought.  The server sends:

HTTP/1.1 200 OK
Date: Fri, 26 Jul 2002 04:40:26 GMT
Server: Apache
Last-Modified: Fri, 26 Jul 2002 04:32:37 GMT
ETag: "1d87f6-46-3d40d0e5"
Accept-Ranges: bytes
Content-Length: 70
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

Notice the last line.  Now we have two options:

1) Be like IE and ignore the content-type the server sends.  Guess ourselves;
   get it wrong sometimes when the server had it right.
2) Be like every other browser, follow the HTTP specification, and show the data
   as text/plain.  Always get things right for a correctly functioning server.

Send mail to the relevant webmasters and ask them to fix their servers.....
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
or could be both .. and add a new toggle in the configuration .. like as if
contacting webmasrters will work .. just how long did it take to kill of Code
Red .. and ther's still infected servers out there
thx good to know its been suggested
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.