[Novalug] Firefox weirdness...

Peter Larsen plarsen@famlarsen.homelinux.com
Thu Feb 25 10:39:53 EST 2010


On Thu, 2010-02-25 at 09:53 -0500, Nick Danger wrote:

> This happens to me on sites like Facebook fairly often. Its server
> side, so you cant really fix it.


It's a simple matter of returning the wrong mime-type. When the browser
doesn't get text/html as a mime, it could for instance be spelled wrong,
with the wrong case or spaces, it doesn't know that the file is
supposedly to be interpreted by the browser itself. It's what makes the
browser able to ask if you want to save a FILE instead of showing it in
the browser window. 

How that mapping is done is defined in the preference section of Firefox
- look for "applications". Except for a few built in definitions like
"text/html" you'll see a list of all applications/plugins etc.
corresponding to a set of mime-types. Check what the web-server returns
telling your browser what type of data it's sending. You'll most likely
find some "wierd" or unsupported mime-type which causes firefox to
default to prompting you for saving the stream or choose an application
to send the stream of data to.

-- 

Best Regards
  Peter Larsen

Wise words of the day:
Thank goodness modern convenience is a thing of the remote future.
		-- Pogo, by Walt Kelly


> 
> On 02/24/2010 11:59 PM, John Franklin wrote: 
> 
> > That would be a server error.  The server should be interpreting the PHP and rendering HTML from it, including a Content Type header.
> > 
> > jf
> > 
> > On Feb 24, 2010, at 11:15 PM, Roy Wilson wrote:
> > 
> >   
> > 
> > > This happens to me several times a week.  I've tried rebooting both FF and the entire machine, it seems to make no difference, sometimes it works on it's own, sometimes it just *won't*.
> > > 
> > >  It pops up a window with:
> > > 
> > >  You have chosen to open
> > >      index.php
> > >      which is a .PHP file
> > >      (url for php file)
> > > 
> > >  What should firefox do with this file?
> > > 
> > > 
> > >  What's really annoying is that it opens most php web page files fine.  Some it just refuses to open at random - if I try to open that page again in five minutes, it might work.  Or not.
> > > 
> > >  Anyone have any clues?
> > > 
> > > _______________________________________________
> > > Novalug mailing list
> > > Novalug@calypso.tux.org
> > > http://calypso.tux.org/mailman/listinfo/novalug
> > >     
> > 
> > 
> > _______________________________________________
> > Novalug mailing list
> > Novalug@calypso.tux.org
> > http://calypso.tux.org/mailman/listinfo/novalug
> >   
> 
> 
> 
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20100225/04149fb4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20100225/04149fb4/attachment.asc>


More information about the Novalug mailing list