Mikäli lataan oheisen linkin tiedoston Operalla, niin tiedostopääte tulee oikein. IE:llä ladatessa muuttuu .man päätteeksi.
http://www.finnsat.tv/tiedostopankki/131/FST02_05PVR_v1.1.9.sdl
Miten tuo voi olla mahdollista?
http://www.finnsat.tv/tiedostopankki/131/FST02_05PVR_v1.1.9.sdl
Miten tuo voi olla mahdollista?
Vastaukset 5
Vanhimmat
Tiedosto on tyyppiä: Troff-asiakirja (man-sivu-makroilla)"
Tuollaista kertoi tiedostonavaaja/lataaja.
tuossa ehkä käsitellään tätä kysymystä
http://stackoverflow.com/questions/16737698/how-do-you-make-a-browser-download-a-file-without-changing-its-name-extension
"There are http headers that explicitly specify a file extenstion. for that u should set content-Type to for example "application/pdf" for pdf files or "application/ms-excel" for excel files"
Toinen selain ilmeisesti käyttää headerissa olevaa tietoa.
firefox lähetti pyynnön
(Status-Line) HTTP/1.1 200 OK
Date Mon, 12 Sep 2016 14:53:23 GMT
Server Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_perl/2.0.9 Perl/v5.16.3
Last-Modified Mon, 27 Jan 2014 11:15:35 GMT
Etag "1c0010-4f0f1d39e63c0-gzip"
Accept-Ranges bytes
Vary Accept-Encoding
Content-Encoding gzip
Connection keep-alive, Keep-Alive
Keep-Alive timeout=5, max=100
Transfer-Encoding chunked
Content-Type application/x-troff-man
sivu vastasi
(Status-Line) HTTP/1.1 200 OK
Date Mon, 12 Sep 2016 14:53:23 GMT
Server Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_perl/2.0.9 Perl/v5.16.3
Last-Modified Mon, 27 Jan 2014 11:15:35 GMT
Etag "1c0010-4f0f1d39e63c0-gzip"
Accept-Ranges bytes
Vary Accept-Encoding
Content-Encoding gzip
Connection keep-alive, Keep-Alive
Keep-Alive timeout=5, max=100
Transfer-Encoding chunked
Content-Type application/x-troff-man
httpFox lisäosalla sai tuollaista. Vika rivillä ilmeisesti tyyppi.
Firefox lähtetti pyynnön
(Request-Line) GET /tiedostopankki/131/FST02_05PVR_v1.1.9.sdl HTTP/1.1
Host www.finnsat.tv
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Accept text/html,application/xhtml xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-US,en;q=0.5
Accept-Encoding gzip, deflate
Connection keep-alive
Upgrade-Insecure-Requests 1
Lisäksi mime-tyypit ja tiedostotunnisteet
http://ccm.net/contents/662-file-formats-and-extensions
IE ja muut microsoftin koodaukset windows mukaan lukien, ovat persiistä. Ainoastaan vakoilu niissä toimii.