Click here to get back home

the web browser asks me if I want to download my index.htm file,instead of showing it

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
the web browser asks me if I want to download my index.htm file,instead of showing it lawrence 07-30-2004
Get Chitika Premium
Posted by lawrence on July 30, 2004, 2:29 pm
Please log in for more thread options
Under the domain publicpen.com I've several dozen sites in
subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
with any of these sites. But under one, which I put in yesterday,
www.publicpen.com/staengl, when I point my browser there, the browser,
instead of showing me the index.htm pages like it should, it instead
tries to download it as an object. Why?

Below are the contents of index.htm. Does anyone see anythging wrong
here?




<html>
<head>
<title>Staengl Engineering: Energy Efficient Design</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Tue Feb 17 00:36:21
GMT-0500 (Eastern Standard Time) 2004-->
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

function openFullWindow(theURL,winName) { //v2.0
        var winHeight = screen.availHeight-30;
        var winWidth = screen.availWidth-10;
window.open(theURL,winName,"scrollbars,width=" + winWidth +
",height=" + winHeight + ",screenX=0,screenY=0,top=0,left=0");
}
//-->
</script>
<link href="staengl3.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="Energy Efficient HVAC Design, Energy
Efficient design, building HVAC design, mechanical design, sustainable
building design, green design, energy efficiency, green buildings,
HVAC for green buildings, passive solar design, solar systems, indoor
air quality, geothermal heat pumps, chiller plants, steam plants,
building energy analysis, energy analysis, commissioning, building
commissioning">
<meta name="description" content="Staengl Engineering is an HVAC and
mechanical systems design firm that focuses on energy efficiency
design for buildings and industrial facilities.">
</head>
<body bgcolor="#E8E5D9"
onLoad="MM_preloadImages('images/subpage_nav_r1_c1_f2.gif','images/subpage_nav_r1_c2_f2.gif','images/subpage_nav_r1_c3_f2.gif','images/subpage_nav_r1_c4_f2.gif','images/subpage_nav_r1_c5_f2.gif','images/subpage_nav_r1_c6_f2.gif')">
<table width="100%" height="95%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center" valign="middle"><table width="740" border="0"
cellpadding="10" cellspacing="0" class="borderOuter">
<tr>
<td align="center" valign="middle"><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOuter">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FAC750"><img src="images/spacer.gif"
width="185" height="10"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#8CBD74"><img src="images/spacer.gif"
width="182" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#9FCBD5"><img src="images/spacer.gif"
width="137" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#6CAFBD"><img src="images/spacer.gif"
width="211" height="5"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="6"
height="6"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0"
width="718">
<!-- fwtable fwsrc="projects_3e_cut_top.png"
fwbase="subpage_nav.gif" fwstyle="Dreamweaver" fwdocid = "742308039"
fwnested="0" -->
<tr>
<td><a href="services.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c1','','images/subpage_nav_r1_c1_f2.gif',1);"><img
name="subpage_nav_r1_c1" src="images/subpage_nav_r1_c1.gif" width="94"
height="38" border="0" alt=""></a></td>
<td><a href="company.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c2','','images/subpage_nav_r1_c2_f2.gif',1);"><img
name="subpage_nav_r1_c2" src="images/subpage_nav_r1_c2.gif" width="92"
height="38" border="0" alt=""></a></td>
<td><a href="projects.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c3','','images/subpage_nav_r1_c3_f2.gif',1);"><img
name="subpage_nav_r1_c3" src="images/subpage_nav_r1_c3.gif" width="95"
height="38" border="0" alt=""></a></td>
<td><a href="contact.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c4','','images/subpage_nav_r1_c4_f2.gif',1);"><img
name="subpage_nav_r1_c4" src="images/subpage_nav_r1_c4.gif" width="88"
height="38" border="0" alt=""></a></td>
<td><a href="links.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c5','','images/subpage_nav_r1_c5_f2.gif',1);"><img
name="subpage_nav_r1_c5" src="images/subpage_nav_r1_c5.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><a href="index.htm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c6','','images/subpage_nav_r1_c6_f2.gif',1);"><img
name="subpage_nav_r1_c6" src="images/subpage_nav_r1_c6.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><img name="subpage_nav_r1_c7"
src="images/subpage_nav_r1_c7.gif" width="211" height="38" border="0"
alt=""></td>
</tr>
</table>
<table width="718" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="718" height="210">
<param name="movie" value="front.swf">
<param name="quality" value="high"><param
name="BGCOLOR" value="#FFFFFF"><param name="LOOP" value="false">
<embed src="front.swf" width="718" height="210"
loop="false" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table width="680" border="0"
cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="170"><table width="100%"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Staengl Engineering
</strong></td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>129 Goodman St.<br>
Charlottesville, VA 22902 </td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>(434)295-8105</td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td><a
</tr>
</table></td>
<td><img src="images/spacer.gif" width="50"
height="25"></td>
<td><a href="http://www.usgbc.org/default.asp"
target="_blank"><img src="images/usgbc.gif" width="95" height="100"
border="0" align="right"></a>Staengl
Engineering is a <strong>Mechanical &amp;
HVAC design
firm</strong> whose focus
is energy efficient design for buildings and
industry.
At Staengl Engineering, we believe that the
principles
involved in <strong>Energy
Efficient</strong> and <strong>Sustainable</strong> design
are integral to good design practice. Each
of our designs
represents a careful evaluation of the
customer&rsquo;s
application, and the creation of a system
that is custom
tailored to suit the needs of the client,
and the specifics
of the site environment.</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0"
cellspacing="0" bgcolor="#F8F8F8">
<tr>
<td bgcolor="#C4C6C6"><img src="images/spacer.gif"
width="1" height="1"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
<tr>
<td align="center">
<table width="690" border="0" cellspacing="0"
cellpadding="0">
<tr align="left" valign="top">
<td class="copyright">Copyright &copy; 2004,
Staengl
Engineering. All rights reserved.</td>
<td align="right" class="copyright">Site by:
<a href="http://www.breviloquent.com/" target="_blank"
class="copyright">Breviloquent</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>


Posted by Darin McGrew on July 30, 2004, 9:33 pm
Please log in for more thread options
> Under the domain publicpen.com I've several dozen sites in
> subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
> with any of these sites. But under one, which I put in yesterday,
> www.publicpen.com/staengl, when I point my browser there, the browser,
> instead of showing me the index.htm pages like it should, it instead
> tries to download it as an object. Why?

Because http://www.publicpen.com/staengl/ is sent with

        Content-Type: application/x-php

and most browsers don't know what to do with that, and most browsers are
configured to ask the user to save unknown file types.
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

"FAILURE IS NOT AN OPTION. It comes bundled with the software."


Posted by lawrence on July 30, 2004, 11:09 pm
Please log in for more thread options
> > Under the domain publicpen.com I've several dozen sites in
> > subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
> > with any of these sites. But under one, which I put in yesterday,
> > www.publicpen.com/staengl, when I point my browser there, the browser,
> > instead of showing me the index.htm pages like it should, it instead
> > tries to download it as an object. Why?
>
> Because http://www.publicpen.com/staengl/ is sent with
>
>         Content-Type: application/x-php
>
> and most browsers don't know what to do with that, and most browsers are
> configured to ask the user to save unknown file types.

Wow, I never would have caught that. It's interesting, I've lost money
every single time I've tried to port someone else's site. I charge for
2 hours, which I assume is excessive because, after all, how hard can
it be to move a bunch of static web pages from one server to another?
And yet every single time so far I have run into problems, because the
original web design made a series of assumptions that are alien to my
way of thinking, and so a simple move of 10 static pages ends up
costing me 6 hours of my time. Amazing.


Posted by lawrence on July 31, 2004, 9:13 am
Please log in for more thread options
> > Under the domain publicpen.com I've several dozen sites in
> > subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
> > with any of these sites. But under one, which I put in yesterday,
> > www.publicpen.com/staengl, when I point my browser there, the browser,
> > instead of showing me the index.htm pages like it should, it instead
> > tries to download it as an object. Why?
>
> Because http://www.publicpen.com/staengl/ is sent with
>
>         Content-Type: application/x-php
>
> and most browsers don't know what to do with that, and most browsers are
> configured to ask the user to save unknown file types.

This is the content type header in the file:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

It looks to me as if this file is already being sent as text/html. Why
does the browser think it is PHP?


Below is the entire text of the file "index.htm".





<html>
<head>
<title>Staengl Engineering: Energy Efficient Design</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Tue Feb 17 00:36:21
GMT-0500 (Eastern Standard Time) 2004-->
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

function openFullWindow(theURL,winName) { //v2.0
        var winHeight = screen.availHeight-30;
        var winWidth = screen.availWidth-10;
window.open(theURL,winName,"scrollbars,width=" + winWidth +
",height=" + winHeight + ",screenX=0,screenY=0,top=0,left=0");
}
//-->
</script>
<link href="staengl3.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="Energy Efficient HVAC Design, Energy
Efficient design, building HVAC design, mechanical design, sustainable
building design, green design, energy efficiency, green buildings,
HVAC for green buildings, passive solar design, solar systems, indoor
air quality, geothermal heat pumps, chiller plants, steam plants,
building energy analysis, energy analysis, commissioning, building
commissioning">
<meta name="description" content="Staengl Engineering is an HVAC and
mechanical systems design firm that focuses on energy efficiency
design for buildings and industrial facilities.">
</head>
<body bgcolor="#E8E5D9"
onLoad="MM_preloadImages('images/subpage_nav_r1_c1_f2.gif','images/subpage_nav_r1_c2_f2.gif','images/subpage_nav_r1_c3_f2.gif','images/subpage_nav_r1_c4_f2.gif','images/subpage_nav_r1_c5_f2.gif','images/subpage_nav_r1_c6_f2.gif')">
<table width="100%" height="95%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center" valign="middle"><table width="740" border="0"
cellpadding="10" cellspacing="0" class="borderOuter">
<tr>
<td align="center" valign="middle"><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOuter">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FAC750"><img src="images/spacer.gif"
width="185" height="10"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#8CBD74"><img src="images/spacer.gif"
width="182" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#9FCBD5"><img src="images/spacer.gif"
width="137" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#6CAFBD"><img src="images/spacer.gif"
width="211" height="5"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="6"
height="6"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0"
width="718">
<!-- fwtable fwsrc="projects_3e_cut_top.png"
fwbase="subpage_nav.gif" fwstyle="Dreamweaver" fwdocid = "742308039"
fwnested="0" -->
<tr>
<td><a href="services.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c1','','images/subpage_nav_r1_c1_f2.gif',1);"><img
name="subpage_nav_r1_c1" src="images/subpage_nav_r1_c1.gif" width="94"
height="38" border="0" alt=""></a></td>
<td><a href="company.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c2','','images/subpage_nav_r1_c2_f2.gif',1);"><img
name="subpage_nav_r1_c2" src="images/subpage_nav_r1_c2.gif" width="92"
height="38" border="0" alt=""></a></td>
<td><a href="projects.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c3','','images/subpage_nav_r1_c3_f2.gif',1);"><img
name="subpage_nav_r1_c3" src="images/subpage_nav_r1_c3.gif" width="95"
height="38" border="0" alt=""></a></td>
<td><a href="contact.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c4','','images/subpage_nav_r1_c4_f2.gif',1);"><img
name="subpage_nav_r1_c4" src="images/subpage_nav_r1_c4.gif" width="88"
height="38" border="0" alt=""></a></td>
<td><a href="links.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c5','','images/subpage_nav_r1_c5_f2.gif',1);"><img
name="subpage_nav_r1_c5" src="images/subpage_nav_r1_c5.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><a href="index.htm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c6','','images/subpage_nav_r1_c6_f2.gif',1);"><img
name="subpage_nav_r1_c6" src="images/subpage_nav_r1_c6.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><img name="subpage_nav_r1_c7"
src="images/subpage_nav_r1_c7.gif" width="211" height="38" border="0"
alt=""></td>
</tr>
</table>
<table width="718" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="718" height="210">
<param name="movie" value="front.swf">
<param name="quality" value="high"><param
name="BGCOLOR" value="#FFFFFF"><param name="LOOP" value="false">
<embed src="front.swf" width="718" height="210"
loop="false" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table width="680" border="0"
cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="170"><table width="100%"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Staengl Engineering
</strong></td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>129 Goodman St.<br>
Charlottesville, VA 22902 </td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>(434)295-8105</td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td><a
</tr>
</table></td>
<td><img src="images/spacer.gif" width="50"
height="25"></td>
<td><a href="http://www.usgbc.org/default.asp"
target="_blank"><img src="images/usgbc.gif" width="95" height="100"
border="0" align="right"></a>Staengl
Engineering is a <strong>Mechanical &amp;
HVAC design
firm</strong> whose focus
is energy efficient design for buildings and
industry.
At Staengl Engineering, we believe that the
principles
involved in <strong>Energy
Efficient</strong> and <strong>Sustainable</strong> design
are integral to good design practice. Each
of our designs
represents a careful evaluation of the
customer&rsquo;s
application, and the creation of a system
that is custom
tailored to suit the needs of the client,
and the specifics
of the site environment.</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0"
cellspacing="0" bgcolor="#F8F8F8">
<tr>
<td bgcolor="#C4C6C6"><img src="images/spacer.gif"
width="1" height="1"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
<tr>
<td align="center">
<table width="690" border="0" cellspacing="0"
cellpadding="0">
<tr align="left" valign="top">
<td class="copyright">Copyright &copy; 2004,
Staengl
Engineering. All rights reserved.</td>
<td align="right" class="copyright">Site by:
<a href="http://www.breviloquent.com/" target="_blank"
class="copyright">Breviloquent</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>


Posted by Darin McGrew on July 31, 2004, 7:55 pm
Please log in for more thread options
I wrote:
>> Because http://www.publicpen.com/staengl/ is sent with
>>
>>         Content-Type: application/x-php
>>
>> and most browsers don't know what to do with that, and most browsers are
>> configured to ask the user to save unknown file types.

> This is the content type header in the file:
>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">

The META http-equiv markup is irrelevant. What matters is the actual HTTP
header sent by the server:

        $ lynx -dump -head http://www.publicpen.com/staengl/
        HTTP/1.0 200 OK
        Date: Fri, 30 Jul 2004 20:31:10 GMT
        Server: Apache/1.3.22 (Unix) PHP/4.0.6 mod_perl/1.26 FrontPage/5.0.2.2623
AuthMySQL/2.20 mod_ssl/2.8.5 OpenSSL/0.9.6a
        Last-Modified: Thu, 29 Jul 2004 15:23:22 GMT
        ETag: "69293-2cf4-4109166a"
        Accept-Ranges: bytes
        Content-Length: 11508
        Content-Type: application/x-php
        Age: 80551
        X-Cache: HIT from http.rahul.net
        Proxy-Connection: close

Note the Content-Type header.
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

"Timing has a lot to do with the outcome of a rain dance."


Similar ThreadsPosted
Re: the web browser asks me if I want to download my index.htm file,instead of showing it July 30, 2004, 7:05 pm
epp - ie6 changes file name on download March 10, 2005, 1:18 pm
PDF "File Download" window? September 18, 2004, 5:06 pm
force download of a file February 3, 2006, 2:43 pm
"You don't have permission": Why won't this file download? August 31, 2008, 2:55 pm
Help: Download and Display a Text File January 1, 2005, 1:15 am
file download using apache on HPUX August 10, 2007, 7:53 pm
Dynamically showing and hiding browser supplied scrollbars November 11, 2005, 1:47 pm
How do I force a browser to open a certain file with notepad ? December 10, 2006, 8:06 am
in Firefox March 19, 2008, 9:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap