You need to submit a valid HTTP request. Yours doesn't have the version at the end of the request line.

Try:

GET / HTTP/1.0


(Thats a two linefeeds: one marking the end of the request line and one blank line indiating the end of the http headers)
You should then see the HTTP response, headers and all.
If you want to submit HTTP/1.1 requests you need to submit some mandatory headers (Host and maybe Date) otherwise you get a 400 back.

$ telnet
telnet> open localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1

HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Date: Wed, 12 Oct 2005 17:26:36 GMT
Server: Apache-Coyote/1.1
Connection: close

0

Alternatively you can use plug-ins for Mozilla/Firefox and IE which allow you to see the raw response:

http://livehttpheaders.mozdev.org/
http://www.blunck.info/iehttpheaders.html

HTH,

Jon

Mark wrote:
Hi everybody,

How can I see the complete output stream for each http request?

I tried:
----------
$telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /
<html><head><title>Hello Test4</title></head><body></body></html>
---------
Where is a "text/html;charset=..."? or I'm missing something?

Thanks,
Mark.


                
__________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to