Re: where is a text/html;charset= ?

2005-10-12 Thread Mark
Thanks Jon,

 text/html;charset= is not there yet...

Here what I've got:

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=95EA4260325D4C1FCBF8196773A4BED3; Path=/
Content-Length: 478
Date: Wed, 12 Oct 2005 20:34:37 GMT
Server: Apache-Coyote/1.1
Connection: close

Hello Test4


Mark.


--- Jon Wingfield <[EMAIL PROTECTED]> wrote:

> 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 /
> > Hello Test4
> > -
> > 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]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: where is a text/html;charset= ?

2005-10-12 Thread Jon Wingfield
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 /
Hello Test4
-
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]