ShelfServerProtocol

From Tomes Support Wiki

Jump to: navigation, search

Contents

Shelf Server Protocol

The ShelfServer protocol consists of a set of end points and XML messages passed from a ShelfClient such as Tomes to a ShelfServer running on a desktop computer or server. While the version of ShelfServer provided for use with Tomes adds some rather complicated HTML "fixing" routines to clean up poorly formed HTML files found on the Net, a basic implementation of the protocol to provide already clean HTML or Palm files to an iPhone should be trivial to implement in most any web accessible language.

Each ShelfServer starts with a base URL under which all other end points lie. The ShelfServer endpoints are:

UrlScheme

In addition to the above endpoints, the Tomes application also supports a UrlScheme to allow easily adding ShelfServer favorites. To create an appropriate URL, start with the http link of the base URL for the server and add shelfserver: to the beginning.

Compression

All ShelfServer responses should be compressed with gzip or deflate if the client indicated support in the Accept-Encoding request header. If content is so compressed, it must be indicated in the Content-Encoding response header.

File Formats

The above specs are designed for sending over PalmOS based file formats, primarily. For other file formats, please see FormatConversions for important details on the on-device file requirements.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox