Re: Tomcat manager 'list' command - why does it return html markup

2008-09-26 Thread Rainer Jung

sk1ds wrote:

Hi all

probably a silly question from a newbie but...

According to the doco 
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Introduction HERE 

I says I should be able to use the Manager web application using 


A minimal version using HTTP requests only which is suitable for use by
scripts setup by system administrators. Commands are given as part of the
request URI, and responses are in the form of simple text that can be easily
parsed and processed.

However, when using wget or curl from a command line shell under redhat it
returns it with HTML markup.

Any ideas what I am doing wrong ?


What's the URL you are accessing with wget / curl, and what's the result?

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat manager 'list' command - why does it return html markup

2008-09-26 Thread Johnny Kewl


- Original Message - 
From: sk1ds [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, September 26, 2008 4:31 AM
Subject: Tomcat manager 'list' command - why does it return html markup




Hi all

probably a silly question from a newbie but...

According to the doco
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Introduction 
HERE


I says I should be able to use the Manager web application using

A minimal version using HTTP requests only which is suitable for use by
scripts setup by system administrators. Commands are given as part of the
request URI, and responses are in the form of simple text that can be 
easily

parsed and processed.

However, when using wget or curl from a command line shell under redhat it
returns it with HTML markup.

Any ideas what I am doing wrong ?

Many thanks

-

Nothing... it is HTML, but the context is text so easy to copy in a 
browser I think is what they saying

Heres the headers that are actually passed around
First the login... then the text content

http://localhost:8080/manager/list

GET /manager/list HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) 
Gecko/20080702 Firefox/2.0.0.16
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 401 Unauthorized
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 02:00:00 CAT
WWW-Authenticate: Basic realm=Tomcat Manager Application
Content-Type: text/html;charset=utf-8
Content-Length: 954
Date: Fri, 26 Sep 2008 10:01:00 GMT
--
http://localhost:8080/manager/list

GET /manager/list HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) 
Gecko/20080702 Firefox/2.0.0.16
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic 

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 02:00:00 CAT

**SEE its TEXT***
Content-Type: text/plain;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 26 Sep 2008 10:01:11 GMT


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat manager 'list' command - why does it return html markup

2008-09-25 Thread sk1ds

Hi all

probably a silly question from a newbie but...

According to the doco 
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Introduction HERE 

I says I should be able to use the Manager web application using 

A minimal version using HTTP requests only which is suitable for use by
scripts setup by system administrators. Commands are given as part of the
request URI, and responses are in the form of simple text that can be easily
parsed and processed.

However, when using wget or curl from a command line shell under redhat it
returns it with HTML markup.

Any ideas what I am doing wrong ?

Many thanks
-- 
View this message in context: 
http://www.nabble.com/Tomcat-manager-%27list%27-command---why-does-it-return-html-markup-tp19681579p19681579.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]