https problem: application/octet-stream

Posted on 2009-12-23
Last Modified: 2012-05-08
I added SSL support to my php website. its working fine, but sometimes when clicking on one of the internal links, the browser returns a file attachment instead of the page, when I cancel and try gain, it works fine. see the attached picture.

You have chosen to open
which is a:application/octet-stream

Question by:phpmysqlcoder
    1 Comment
    LVL 1

    Accepted Solution

    It seems the problem is with IIS Web server MIME Type of "application/octet-stream". See the "Misconfigured Web Server" section here:

    You might want to install common plugins (or update any existing ones) to be safe:

    Exit Firefox.
    In Windows Explorer, navigate to:
    C:\Program Files\Mozilla Firefox\greprefs
    Open all.js file with Notepad.
    Scroll down, and locate following lines:
    pref("network.http.version", "1.1");
    pref("network.http.proxy.version", "1.1");
    //pref("network.http.version", "1.0");
    //pref("network.http.proxy.version", "1.0");
    Make sure, that first two lines don't start with "//", and two others, do.
    When you're done, go File>Save

    Also make sure there is no links start with "http://". It should be "https:\\".

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now