TELNET

The fastest way to get a feel of what a HTTP API looks like is to try it using TELNET.

Here is an example of using RestMS via TELNET. You can try this on any computer with an Internet connection. I typed "telnet live.zyre.com 80", then "GET /restms/domain/default[Enter][Enter]" and the rest was output by the RestMS server running at live.zyre.com:

ph@nb200901:~$ telnet live.zyre.com 80
Trying 92.243.7.124...
Connected to live.zyre.com.
Escape character is '^]'.
GET /restms/domain/default

HTTP/1.0 200
Content-type: text/xml
Last-modified: Mon, 16 Mar 2009 20:33:51 UTC
Etag: 465425e4e49c1-8a-3
Date: Mon, 16 Mar 2009 20:34:12 UTC
Content-length: 274

<?xml version="1.0"?>
<restms xmlns = "http://www.restms.org/schema/restms">
    <domain name = "default" title = "Default domain">
        <feed type = "direct" name = "default" title = "Default feed"
           href = "http://live.zyre.com/restms/feed/default" />
    </domain>
</restms>
Connection closed by foreign host.
Add a New Comment

Edit | Files | Tags | Source | Print

Table of Contents