PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : attachment-problem: rar werden als html angeboten


thrown-out
16.05.2007, 16:06
hallo.

habe folgendes problem:

.rar-dateien werden als html angeboten.


folgende header werden gesendet.

200 OK
Content-Length: 913576
Content-Disposition: attachment; filename="FCN.rar"
X-Powered-By: PHP/4.4.7
Accept-Ranges: bytes
Expires: Thu, 15 May 2008 13:52:43 GMT
Vary: User-Agent
Server: Apache/1.3.33 (Debian GNU/Linux) mod_python/2.7.10 Python/2.3.4 PHP/4.4.7 mod_ssl/2.8.22 OpenSSL/0.9.7e mod_perl/1.29
Last-Modified: Fri, 04 May 2007 12:33:16 GMT
Connection: close
Etag: "457"
Cache-Control: max-age=31536000, private
Date: Wed, 16 May 2007 13:52:43 GMT
Content-Type: text/html; charset=iso-8859-1


habe schonbsichen im acp rumprobiert mit verschiedenen mimie-types:

application/x-rar-compressed
application/octet-stream
application/rar

allerdings ohne erfolg.

wo könnte das problem liegen?

mfg
simon

s.molinari
16.05.2007, 17:22
Hallo thrown-out,

hier sind andere Möglichkeiten.

application/x-compressed
application/x-rar
application/x-rar-compressed; application/x-compressed
compressed/rar; application/x-rar-compressed

Scott

s.molinari
16.05.2007, 17:40
Ich habe es bei uns gerade ausprobiert. Das funktionierte:

Content-type: application/rar

"Content-type:" muss auch in das Mime-Type Feld eingeben werden.

Scott

thrown-out
18.05.2007, 17:58
leider nein, werden weiterhin als text/html angeboten.

evtl ne php- oder servereinstellung?

s.molinari
20.05.2007, 15:08
Ja, bestimmt. Leider weiss ich nicht welche.

Scott