Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I just see html code

Status
Not open for further replies.

dbeez

Technical User
Aug 15, 2005
71
KR
My apache server seems to spit out the html code which is interpreted by my firefox browser as ... well ... html code.

My browser works fine on other pages so it can't be a browser problem.

Does anyone know what is wrong with my apache server ???
 
Hi

The most frequent reason for this kind of problem is that the server does not send text/html as [tt]Content-type[/tt] in the HTTP header. You forget to mention your operating system, so I let you choose the method to see the response header :
Code:
wget -S --spider [URL unfurl="true"]http://example.com/[/URL]
[gray]# or[/gray]
echo -e "GET / HTTP/1.0\r\n\r" | netcat example.com 80
or use LiveHTTPHeaders extension in FireFox.

Beside this, you also forget to mention the requested file's name and if is static document or generated by script.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top