• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Download firefox problem

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by Sysman View Post
    My problem could be a misconfigured server then. The shared hosting site I noticed this on recently fixed the Content-Type header setting for downloading log files (*.txt) via the Control Panel. I wonder if they accidentally broke plain text files while they were at it.

    Is there a magic incantation I can throw into the HTML which references these text files to set the mime type from there?
    Afraid not

    If they aren't static text files and you have access to the code that serves them, you could pass a type in the query string. Another possibility (on Apache) would be modifying the server config on a per-directory per-filetype basis to set the content type, maybe using a .htaccess file.

    Comment


      #12
      Originally posted by NickFitz View Post
      Afraid not

      If they aren't static text files and you have access to the code that serves them, you could pass a type in the query string. Another possibility (on Apache) would be modifying the server config on a per-directory per-filetype basis to set the content type, maybe using a .htaccess file.
      They are static text files and the HTML is static too. No PHP or CGI involved and it's wicked fast :-)

      ,htaccess looks promising. Thanks.
      Behold the warranty -- the bold print giveth and the fine print taketh away.

      Comment


        #13
        Could you enforce text by opposite of my problem, prefix with x0D or some other recognisable text? If it's text then odd extra byte at the front hardly matters.
        bloggoth

        If everything isn't black and white, I say, 'Why the hell not?'
        John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

        Comment


          #14
          It looks like the ISP has fixed it now, because I couldn't reproduce the problem.

          However I have stuck the following into .htaccess, just in case:

          Code:
          AddType text/plain .txt
          Behold the warranty -- the bold print giveth and the fine print taketh away.

          Comment

          Working...
          X