Help with php - telnet

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

Help with php - telnet

Post by NoS. »

nigma | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Hello everyone, 
i'm new here.   
I've created a php page:

Code: Select all

<?php 
echo "This is my index page"; 
?>
and wanted to test them out using telnet
Below is my log from my test:


# telnet localhost 80
blah blah blah
Escape character is '^]'.
GET /index.php HTTP/1.1
Host: http://www.pengus-picks.com

HTTP/1.1 200 OK
Date: Fri, 03 Dec 2004 23:55:29 GMT
Server: Apache/2.0.52 (Unix) PHP/4.3.8
X-Powered-By: PHP/4.3.8
Transfer-Encoding: chunked
Content-Type: text/html

15
This is my index page
0

Code: Select all

&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt; 
&lt;html&gt;&lt;head&gt; 
&lt;title&gt;501 Method Not Implemented&lt;/title&gt; 
&lt;/head&gt;&lt;body&gt; 
&lt;h1&gt;Method Not Implemented&lt;/h1&gt; 
&lt;p&gt;q to / not supported.&lt;br /&gt; 
&lt;/p&gt; 
&lt;/body&gt;&lt;/html&gt; 
Connection closed by foreign host.

I am just wondering, why is there a 15 and a 0 shown
but its not really shown if i just access the page from IE.
not even when i view the source on IE.
The 15 look like word count or something?? 8O
i dont know, im just guessing (correct me if i am wrong)

Anyways, can anyone tell me what the 15 and 0 are???
Is there any way i can get rid of those ??
say if i have to use php page.

Thanks all.

nigma | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
DrHoliday
Forum Newbie
Posts: 11
Joined: Mon Dec 06, 2004 5:12 pm
Location: Germany

Post by DrHoliday »

I don't know what these numbers are, but if you use HTTP/1.0 instead of HTTP/1.1 they're gone.

Wolfgang
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

Post by NoS. »

ohh wow it does go away,
thats so cool
thanks a lot!
Post Reply