[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn:mime-type property

From: Dale R. Worley <dworley_at_pingtel.com>
Date: 2005-09-08 01:38:54 CEST

On Wed, 2005-09-07 at 16:34 -0400, Andrea O. Salas wrote:
> When I use a netscape browser to look at these two files, they are
> immediately displayed.
> However, when I use internet explorer, it thinks the .doc file is a MS
> Word file and
> it doesn't know what the .man file is. I tried setting the svn:mime-type
> property for
> both of these files to text/plain hoping that the internet explorer
> browser would then
> know it was text. However, this had no effect on the internet explorer
> browser.

One way to tell for sure is to find the full URL
(http://host/path/foo.doc) by which you can retrieve the file into your
browser, then use telnet to pretend you're a browser:

    $ telnet host 80
    HEAD /path/foo.doc HTTP/1.0
    [blank line]

Then the host should respond with something like:

    HTTP/1.0 200 OK
    Date: Wed, 07 Sep 2005 23:42:04 GMT
    Server: Apache/1.3.33 (Unix) PHP/5.0.4 mod_ssl/2.8.22 OpenSSL/0.9.7d
    Content-Type: text/plain

The "Content-Type:" header gives the MIME-type of the file. If that
header is present and says "text/plain", the browser has no excuse to
not display it as such.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 8 01:40:53 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.