Mozilla's showing source code(!)

A

Altamir

Hello!

See http://www.mzk.jgora.pl/html/zabobrze.htm and click at one of
the black squares.

Mozilla (win9.x, linux) is showing nothing but the source code. Of
course it's not what I wanna see. 'Page Info' says it's text/plain
page even though the declared content-type is text/html.
What is the problem?

Greetings,
Altamir
 
B

brucie

In post <[email protected]>
Altamir said...

See http://www.mzk.jgora.pl/html/zabobrze.htm and click at one of
the black squares.

Mozilla (win9.x, linux) is showing nothing but the source code.

thats because your content type says its text/plain not text/html.
correctly behaving browsers will display the markup as text because
you said it was text.
Of course it's not what I wanna see. 'Page Info' says it's text/plain page
even though the declared content-type is text/html.

no, it says text/plain

GET /bins/przystanek.cgi?97 HTTP/1.1

....

HTTP/1.1 200 OK
Date: Thu, 02 Oct 2003 11:25:04 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.2
Transfer-Encoding: chunked
Content-Type: text/plain
 
R

rf

brucie said:
In post <[email protected]>
Altamir said...



thats because your content type says its text/plain not text/html.
correctly behaving browsers will display the markup as text because
you said it was text.


no, it says text/plain

GET /bins/przystanek.cgi?97 HTTP/1.1

My mozilla shows
"javascript:rozklad(754)"
in the address bar with a very fine looking white page underneath.

Cheers
Richard.
 
C

Christian Dallapozza

i think it is an server problem .... or the perl script is corrupt
 
D

Dylan Parry

brucie said:
HTTP/1.1 200 OK
Date: Thu, 02 Oct 2003 11:25:04 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.2
Transfer-Encoding: chunked
Content-Type: text/plain

brucie, just out of curiosity, what application do you use to get that
info? Opera tells me some of it as a tooltip, but how do you get it?
 
D

Daniel R. Tobias

brucie said:
cgi is not necessarily perl

please don't toppost
How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post

He might be getting confused by the ".pl" in the URL, but in this case
it's actually the country-code domain of Poland, not the file extension
of the script. The script ends in .cgi, which could be in any scripting
language.
 
R

rf

Daniel R. Tobias said:
He might be getting confused by the ".pl" in the URL, but in this case
it's actually the country-code domain of Poland,

Not when it comes after that slash after .com.
not the file extension
of the script. The script ends in .cgi, which could be in any scripting
language.

Looks like a file extension to me :)

Cheers
Richard.
 
A

Altamir

i think it is an server problem .... or the perl script is corrupt

I guess that cgi script was written in C language. Whatever it was -
needs some repair.

Thank You all for posting.

Greetings,
altamir
 
T

Toby A Inkster

Dylan said:
brucie, just out of curiosity, what application do you use to get that
info? Opera tells me some of it as a tooltip, but how do you get it?

Telnet is one reliable way of doing it. Most OSes should come with a
telnet client preinstalled. Just telnet to port 80 of the web server and
type:

HEAD /path/to/file HTTP/1.1
Host: www.hostnamegoeshere.com


Note, there must be a blank line after the Host line, so press Enter twice!

Another way is using Lynx:

lynx -dump -head http://www.hostnamegoeshere.com/path/to/file

Lynx is a free browser and can be downloaded here:
http://lynx.browser.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top