By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

HTML is not displayed but downloaded ! Please help !

P: n/a
Hi !


I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file ! The options are open, save, cancel, More Info.
When I say 'open', a list with windows applications is opened and I am
supposed to choose a program to open that file. If I open the file
with WordPad then I see that it is full of garbage. This is happening
only with Internet Explorer and what is worse ONLY sometimes. I am not
able to reproduce this all the time.
My HTML file looks perfectly legal. Besides that the site
has worked fine for almost 2 years now. I have the impression that
Microsoft has lately produced a patch that makes some problems, but
this is only a supposition based on the fact that Mozilla, Firefox,
Opera, Lynx, Netscape are working fine.
Can somebody tell me what I am doing wrong ?


Regards,
Razvan
Jul 20 '05 #1
Share this Question
Share on Google+
19 Replies


P: n/a
On 19/8/04 9:16 am, Razvan wrote:
I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


This is probably a problem with IE6 -- your server seems to be working
correctly.

However, your HTML is invalid and could be causing some problems. I suggest
you visit http://validator.w3.org/ and find out what is wrong with your
markup.

Phil

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #2

P: n/a
mi*****@mailcity.com (Razvan) wrote:

I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


Sometimes? When does it, when doesn't it? Anyway, it works for me in
IE6.
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #3

P: n/a
Razvan wrote:
Hi !


I have a big problem with my web site www.mihaiu.name.
You should always cite Web site addresses as URLs (in this example
http://www.mihaiu.name).
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file ! The options are open, save, cancel, More Info.
When I say 'open', a list with windows applications is opened and I am
supposed to choose a program to open that file. If I open the file
with WordPad then I see that it is full of garbage. This is happening
only with Internet Explorer and what is worse ONLY sometimes. I am not
able to reproduce this all the time.


This is probably an IE bug. Your only real recourse is to report it to
Microsoft and hope they fix it in a reasonable time.

--
Shawn K. Quinn
Jul 20 '05 #4

P: n/a
"Razvan" <mi*****@mailcity.com> a écrit dans le message de
news:15**************************@posting.google.c om
I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


No problem with my IE6. When does the problem occurs ? Are your pages served
by a web server farm ?

Jul 20 '05 #5

P: n/a
In article <15**************************@posting.google.com >, mihai11
@mailcity.com enlightened us with...


I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


Sometimes?

When it does that, have you checked that the server is serving the correct
mime type?

--
--
~kaeli~
A lot of money is tainted - It taint yours and it taint mine.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #6

P: n/a
> >
I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


Sometimes? When does it, when doesn't it? Anyway, it works for me in
IE6.


I am not able to find a pattern for this problem. For example,
as I am writting this, from my computer from work I can access the
site only by typing
"www.mihaiu.name/index.html". If I do not type the file name
"index.html" it will ask me to download something. However this trick
does not work for other files: when I am trying to see my photos it
will fail EVERY time:

www.mihaiu.name/photos/index.html

I repeat, this is from my computer from work. When I'll get
home I'll check with my laptop to see what is happening.

The strange thing is that all the files seems to work if I call
them direclty; for example if I want to see my links I can do:

www.mihaiu.name/links.html

and it works without any problems (all the files, except the photos
-mentionated above - which do not work no matter what I do).

This is strinctly IE 6 behaviour. Firefox works without any
problems. Unfortunately almost everybody who is coming on my site is
using IE6 ! As a result of this, most people leave the site in several
seconds (I checked Apache's log files).

Does anybody know how to check the mime type that the server is
returning ? Perhaps Apache is misconfigured somehow.

My exact IE6 version is: "6.0.2800.1106IC", update version
"SP1;Q867801;Q823355". I suppose that the Q(s) are patches applied to
the browser. If somebody with the exact same IE can test my site I'll
be grateful.

Thanks,
Razvan
Jul 20 '05 #7

P: n/a
> > I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


This is probably a problem with IE6 -- your server seems to be working
correctly.

However, your HTML is invalid and could be causing some problems. I suggest
you visit http://validator.w3.org/ and find out what is wrong with your
markup.

Phil


The problem is that it asks to download the whole HTML and
when I do that I only get garbage (I do not get even a single
character - all I get are strange ASCII characters like  ). I do not
understand how this kind of corruption can take place. Changing a tag
or two in the HTML code won't change this behaviour. If I can fix
this, I'll fix later the issues with the HTML code.

Regards,
Razvan
Jul 20 '05 #8

P: n/a
In article <15**************************@posting.google.com >, mihai11
@mailcity.com enlightened us with...

I am not able to find a pattern for this problem. For example,
as I am writting this, from my computer from work I can access the
site only by typing
"www.mihaiu.name/index.html". If I do not type the file name
"index.html" it will ask me to download something. However this trick
does not work for other files: when I am trying to see my photos it
will fail EVERY time:

www.mihaiu.name/photos/index.html
This worked fine for me in IE6.
My version:
6.0.2800.1106CO
SP1
Patches:11 of them

So, I doubt it is the mime type, then.
I bet it's a bug in your version of IE.
This is strinctly IE 6 behaviour. Firefox works without any
problems. Unfortunately almost everybody who is coming on my site is
using IE6 !
But I doubt they're all using the *exact* same version, patches and all.
As a result of this, most people leave the site in several
seconds (I checked Apache's log files).

Does anybody know how to check the mime type that the server is
returning ? Perhaps Apache is misconfigured somehow.

http://www.delorie.com/web/headers.html
Content-Type: text/html

So, that's okay.

Just for giggles, try repairing IE. Go to the Add/Remove Programs in the
Control Panel. Choose IE. There should be something there for repairing it.
Try that, reboot, and see if it fixes it.

--
--
~kaeli~
Do cemetery workers prefer the graveyard shift?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #9

P: n/a
Razvan wrote:

Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file ! The options are open, save, cancel, More Info.
When I say 'open', a list with windows applications is opened and I am
supposed to choose a program to open that file. If I open the file
with WordPad then I see that it is full of garbage. This is happening
only with Internet Explorer and what is worse ONLY sometimes. I am not
able to reproduce this all the time.

Your site needs a DOCTYPE added before <html>. That may help. I do not
understand your problem with validation; there are actually very few errors.
The page looks like it is generated by a content management of some
sort (judging by the vast tracks of whitespace), say PHP or perl?
Sometimes server side programs can be twitchy especially if an unhandled
error occurs.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #10

P: n/a
"Pierre Goiffon" <pg******@nowhere.invalid> wrote in message news:<41***********************@news.free.fr>...
"Razvan" <mi*****@mailcity.com> a écrit dans le message de
news:15**************************@posting.google.c om
I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


No problem with my IE6. When does the problem occurs ? Are your pages served
by a web server farm ?


I have no ideea ! What is the problem with the server farm ?
How can I find out this ?
Jul 20 '05 #11

P: n/a
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. ..
In article <15**************************@posting.google.com >, mihai11
@mailcity.com enlightened us with...


I have a big problem with my web site www.mihaiu.name.
Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file !


Sometimes?

When it does that, have you checked that the server is serving the correct
mime type?


Please tell me how do I get the returned mime type ? Is there
a tools that allows me to do that ? I was thiking that a simple telnet
session would allow me to do that, but unfortunately I am unable to
connect:

telnet www.mihaiu.name 80

Connecting To www.mihaiu.name...Could not open connection to the host,
on port 80: Connect failed

Thnanks,
Razvan
Jul 20 '05 #12

P: n/a
In article <15**************************@posting.google.com >, mihai11
@mailcity.com enlightened us with...

Please tell me how do I get the returned mime type ? Is there
a tools that allows me to do that ? I was thiking that a simple telnet
session would allow me to do that, but unfortunately I am unable to
connect:


See my other message to you.
Your mime type is fine. I checked.
http://www.delorie.com/web/headers.html

--
--
~kaeli~
Any sufficiently advanced technology is indistinguishable
from magic.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #13

P: n/a
jmm-list-gn <jm***************@sohnen-moe.com> wrote in message news:<ar********************@giganews.com>...
Razvan wrote:

Sometimes when I visit my page with IE6 the browser ask me to download
the index.html file ! The options are open, save, cancel, More Info.
When I say 'open', a list with windows applications is opened and I am
supposed to choose a program to open that file. If I open the file
with WordPad then I see that it is full of garbage. This is happening
only with Internet Explorer and what is worse ONLY sometimes. I am not
able to reproduce this all the time.
Your site needs a DOCTYPE added before <html>. That may help.


UPS ! You are right. The main index.html has no DOCTYPE. I
just change it. However, all the other pages have the proper DOCTYPE
but some of them are not loading. Anyway, when I get back to work I'll
try again to see what will happen.
The page looks like it is generated by a content management of some
sort (judging by the vast tracks of whitespace), say PHP or perl?
Actually, the whole site is hand made. My "content
management" is UltraEdit - a nice text editor for windows:))
Sometimes server side programs can be twitchy especially if an unhandled
error occurs.


What do you mean by that ?

Regards,
Razvan
Jul 20 '05 #14

P: n/a
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. ..
In article <15**************************@posting.google.com >, mihai11
@mailcity.com enlightened us with...

Please tell me how do I get the returned mime type ? Is there
a tools that allows me to do that ? I was thiking that a simple telnet
session would allow me to do that, but unfortunately I am unable to
connect:


See my other message to you.
Your mime type is fine. I checked.
http://www.delorie.com/web/headers.html


Thanks. Indeed, the headers are OK.
Jul 20 '05 #15

P: n/a
Razvan wrote:

UPS ! You are right. The main index.html has no DOCTYPE. I
just change it. However, all the other pages have the proper DOCTYPE
but some of them are not loading. Anyway, when I get back to work I'll
try again to see what will happen.
When did this problem start? What changed about that time? Was anything
installed or removed?
What kind of network connection do you have? Dialup? Wireless? DSL?
Do you have a firewall installed and operating?
Actually, the whole site is hand made. My "content
management" is UltraEdit - a nice text editor for windows:))

Hm. It expands tabs with 10 spaces. Rather excessive.
Sometimes server side programs can be twitchy especially if an unhandled
error occurs.


What do you mean by that ?

Depending on the configuration you may get nothing from a server side
content manager, bizarre error messages, or even random binary data.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #16

P: n/a
"Razvan" <mi*****@mailcity.com> a écrit dans le message de
news:15**************************@posting.google.c om
Are your
pages served by a web server farm ?


I have no ideea ! What is the problem with the server farm ?
How can I find out this ?


Very often when more than 1 server are serving pages for a website, one of
the server is misconfigured. Ask your hosting service ?

Jul 20 '05 #17

P: n/a
> When did this problem start?

The problem started some 4 weeks ago. From my point of view
nothing has changed because I was not updating my site at the time.

What changed about that time?

Anyway, since that happened, I started some trial and error tests
and I realized that putting the DOCTYPE header would solve most of the
problems. As of today all the *.html files have the DOCTYPE header and
everything is OK except for the photos directory. For this directory
the behavior is unusual:

a. if I invoke the directory with:

www.mihaiu.name/photos/index.html

I only get garbage.

b. if I invoke with

www.mihaiu.name/photos

EVERYTHING is OK. Can you understand the reason ?!! To me it seems
like random behavior.
Some strange side effect with my IE is that after putting DOCTYPE
in front of the main 'index.html' I get JavaScript errors. Currently I
had no time to investigate this. I am 100% sure that I have not
changed anything except adding the DOCTYPE and now the page has
JavaScript errors.

Was anything installed or removed ?
You mean on the server ? It is possible. I don't know what the
ISP is doing.

What kind of network connection do you have? Dialup? Wireless? DSL?
Do you have a firewall installed and operating?


The problems that I am telling you about occur when I am at
work. Here I do have a firewall, that is 100% sure. As for the
connection type I do not know: this is a big organization (anyway it
is a permanent connection, if that helps).

But I do not see where you are going. Let's suppose that I have
wireless. What could be the problem with that ?! This is a low-level
protocol. Applications doing HTTP are not aware of the underlying
implementation: could be Ethernet, Wireless, DSL ... it does not
matter.


Hm. It expands tabs with 10 spaces. Rather excessive.


This must be an option somewhere. I assure you that by default
the tab is 8 spaces.

What do you mean by that ?

Depending on the configuration you may get nothing from a server side
content manager, bizarre error messages, or even random binary data.


I do not use any server-side content manager. I edit the file
locally, test them with a local Apache then ftp the results to the
site.

Regards,
Razvan
Jul 20 '05 #18

P: n/a
In article <15**************************@posting.google.com >, mihai11
@mailcity.com enlightened us with...


Some strange side effect with my IE is that after putting DOCTYPE
in front of the main 'index.html' I get JavaScript errors. Currently I
had no time to investigate this. I am 100% sure that I have not
changed anything except adding the DOCTYPE and now the page has
JavaScript errors.


That's not a side effect. That's what happens when your javascript was
relying on "quirks mode", which is what IE goes into when you don't supply a
doctype or supply one with no URL.

So, on the bright side, you found some errors you can fix. ;)

--
--
~kaeli~
Acupuncture is a jab well done.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #19

P: n/a
Razvan wrote:
When did this problem start?
The problem started some 4 weeks ago. From my point of view
nothing has changed because I was not updating my site at the time.

I am asking about your personal (or office) computer, not the website.
a. if I invoke the directory with:
www.mihaiu.name/photos/index.html
I only get garbage.
b. if I invoke with
www.mihaiu.name/photos

EVERYTHING is OK. Can you understand the reason ?!! To me it seems
like random behavior.
I cannot duplicate the error. But then I am not using IE.
Some strange side effect with my IE is that after putting DOCTYPE
in front of the main 'index.html' I get JavaScript errors. Currently I
had no time to investigate this. I am 100% sure that I have not
changed anything except adding the DOCTYPE and now the page has
JavaScript errors.
Yes, you have a lot of minor errors in your javascript.
Was anything installed or removed ?


You mean on the server ? It is possible. I don't know what the
ISP is doing.

No, your local computer.
The problems that I am telling you about occur when I am at
work. Here I do have a firewall, that is 100% sure. As for the
connection type I do not know: this is a big organization (anyway it
is a permanent connection, if that helps).

It would indicate some configuration problem either with your office
network or your office computer.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #20

This discussion thread is closed

Replies have been disabled for this discussion.