1 |
Hartmut Figge <h.figge@×××.de> [11-06-13 07:32]: |
2 |
> meino.cramer@×××.de: |
3 |
> |
4 |
> > there is one feature of forefox, which bugs me: |
5 |
> > On the same site (www.blenderswap.com) I click |
6 |
> > to files to download. One is a *.blend, the |
7 |
> > other one is a *.rar. |
8 |
> > When I click the *.blend, the file gets downloaded |
9 |
> > and stored on my hd at once -> bad! |
10 |
> > When I click the *.rar, the file gets NOT downloaded |
11 |
> > at once and instead I am offered a dialog, which |
12 |
> > asks what to do. |
13 |
> > |
14 |
> > I looked into Preferences->Application, which lists |
15 |
> > filetypes and the according action and DONT find |
16 |
> > an entry for *.blend files. |
17 |
> |
18 |
> What happens depends on the Content-Type with which the server delivers |
19 |
> the file. Here is an example. |
20 |
> |
21 |
> http://www.triffids.de/pub/blend/ |
22 |
> |
23 |
> Both files are identical text files, but hm.blend1 comes with text/plain |
24 |
> and hm.blend2 comes with text/hafi. The last is unknown *g*, so it will |
25 |
> be asked what to do. text/plain is well known and the browser will |
26 |
> display its content. |
27 |
> |
28 |
> > Where can I change the action selected by Firefox |
29 |
> > which gets executed for a certain filetype else? |
30 |
> |
31 |
> Look at the Content-Type of your *.blend. One way to do this is with |
32 |
> HEAD which is part of libwww-perl. |
33 |
> |
34 |
> hafi@i5 ~ $ HEAD http://www.triffids.de/pub/blend/hm.blend2 |
35 |
> 200 OK |
36 |
> Connection: close |
37 |
> Date: Mon, 13 Jun 2011 05:21:15 GMT |
38 |
> Accept-Ranges: bytes |
39 |
> ETag: "942355-b-4a590cf7e03b1" |
40 |
> Server: Apache |
41 |
> Content-Length: 11 |
42 |
> Content-Type: text/hafi |
43 |
> Last-Modified: Mon, 13 Jun 2011 05:01:21 GMT |
44 |
> Client-Date: Mon, 13 Jun 2011 05:21:15 GMT |
45 |
> Client-Peer: 85.13.136.212:80 |
46 |
> Client-Response-Num: 1 |
47 |
> |
48 |
> Hartmut |
49 |
> -- |
50 |
> Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/ |
51 |
> Von Usern fuer User :-) |
52 |
> |
53 |
> |
54 |
|
55 |
Hi Hartmut, |
56 |
|
57 |
Oh, yeah! GREAT! I didn't know of "HEAD" at all - this nice tool fixes |
58 |
the problem at once! Great help, thank you very much ! :))) |
59 |
|
60 |
Have a nice "Pfingstmontag" :) |
61 |
|
62 |
Best regards, |
63 |
mcc |