[mod_cluster-dev] How can I invoke MCMP commands via telnet ?

Bela Ban bela at jboss.com
Mon Dec 15 08:03:03 EST 2008


[mac] /Users/bela/tmp$ telnet linux 8000
Trying 192.168.1.5...
Connected to linux.
Escape character is '^]'.
DISABLE-APP / HTTP/1.0
JvmRoute: node2
Context: /jbossws

HTTP/1.1 403 Forbidden
Date: Mon, 15 Dec 2008 13:02:18 GMT
Server: Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 
mod_jk/1.2.26
Content-Length: 202
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /
on this server.</p>
</body></html>
Connection closed by foreign host.


jean-frederic clere wrote:
> Bela Ban wrote:
>> I tried
>>
>> telnet localhost 8000
>> GET /INFO HTTP/1.0
>>
>> doesn't work. Is there a way for me to invoke those commands 
>> interactively ?
>>
>
> You have use the MCMP method INFO instead GET.
> For example:
> +++
> [jfclere at jfcpc ~]$ telnet 10.33.144.200 6666
> Trying 10.33.144.200...
> Connected to 10.33.144.200.
> Escape character is '^]'.
> INFO / HTTP/1.1
> Host: localhost
>
> HTTP/1.1 200 OK
> Date: Mon, 15 Dec 2008 12:22:31 GMT
> Server: Apache/2.2.11-dev (Unix) mod_ssl/2.2.11-dev OpenSSL/0.9.8g DAV/2
> Content-Length: 0
> Connection: close
> Content-Type: text/plain
>
> Connection closed by foreign host.
> +++
> and "INFO / HTTP/1.0" for 1.0
>
> Cheers
>
> Jean-Frederic

-- 
Bela Ban
Lead JGroups / Clustering Team
JBoss - a division of Red Hat




More information about the mod_cluster-dev mailing list