The Ape says:

APP Service doc: http://rubypad4/wordpress/wp-app.php/service

Summary: 0 errors, 3 warnings.

  1. TESTING: Service document and collections.

  2. Retrieval of Service Document: it exists and is served properly. [Dialog]

  3. Found these collections:

  4. Will use collection 'WordPress Posts' for entry creation.

  5. Page 1 of Entry collection: it exists and is served properly. [Dialog]

  6. Entry collection has correct app:edited value order.

  7. TESTING: Entry-posting basics.

  8. Now in the Entries feed:

  9. Posting of new entry to the Entries collection reported success, Location: http://rubypad4/wordpress/wp-app.php/post/3 [Dialog]

  10. Examining the new entry as returned in the POST response

  11. Returned entry is consistent with posted entry.

  12. Provided categories included in Returned entry.

  13. ? Server discarded foreign markup in Returned entry.

  14. Retrieval of newly created entry: it exists and is served properly. [Dialog]

  15. Examining the new entry as retrieved using Location header in POST response:

  16. Client-provided slug 'ape-448' was used in server-generated URI.

  17. Retrieved entry is consistent with posted entry.

  18. Provided categories included in Retrieved entry.

  19. ? Server discarded foreign markup in Retrieved entry.

  20. Examining the new entry as it appears in the collection feed:

  21. Entry from collection feed is consistent with posted entry.

  22. Provided categories included in Entry from collection feed.

  23. ? Server discarded foreign markup in Entry from collection feed.

  24. Update of new entry reported success. [Dialog]

  25. Title of new entry successfully updated.

  26. Entry deletion reported success. [Dialog]

  27. Entry not found in feed after deletion.

  28. TESTING: Collection re-ordering after PUT.

  29. Page 1 of Entries with multi-post: it exists and is served properly. [Dialog]

  30. Entries with multi-post has correct app:edited value order.

  31. Entries correctly ordered after multi-post.

  32. Page 1 of Entries post-update: it exists and is served properly. [Dialog]

  33. Entries post-update has correct app:edited value order.

  34. Entries correctly ordered after update of multi-post.

  35. TESTING: Content sanitization

  36. Retrieval of unclean XHTML entry: it exists and is served properly. [Dialog]

  37. Published entry appears to be sanitized.

  38. Will use collection 'WordPress Media' for media creation.

  39. TESTING: Posting to media collection.

  40. Post of image file reported success, media link location: http://rubypad4/wordpress/wp-app.php/attachments/8 [Dialog]

  41. Retrieval of media link entry: it exists and is served properly. [Dialog]

  42. Client-provided slug 'apix-63278' was used in Media Resource URI.

  43. Retrieval of media resource: it exists and is served properly. [Dialog]

  44. Media resource was apparently stored and retrieved properly.

  45. Media link entry deletion reported success. [Dialog]

  46. Media link entry no longer in feed.

  47. Media resource no longer fetchable.

  48. TESTING: Media collection re-ordering after PUT.

  49. Page 1 of Pictures from multi-post: it exists and is served properly. [Dialog]

  50. Pictures from multi-post has correct app:edited value order.

  51. Fetch image to get ETag: it exists and is served properly. [Dialog]

  52. Update one of newly posted pictures went OK.

  53. Page 1 of MLEs post-update: it exists and is served properly. [Dialog]

  54. MLEs post-update has correct app:edited value order.

  55. Entries correctly ordered after update of multi-post.

Recorded client/server dialogs

Page 1 of Entries post-update

To server:
GET /wordpress/wp-app.php/posts HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:42 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
X-Pingback: http://rubypad4/wordpress/xmlrpc.php\r
Expires: Wed, 11 Jan 1984 05:00:00 GMT\r
Last-Modified: Tue, 04 Sep 2007 05:34:42 GMT\r
Cache-Control: no-cache, must-revalidate, max-age=0\r
Pragma: no-cache\r
Connection: close\r
Content-Length: 4286\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
<id>http://rubypad4/wordpress/wp-app.php/posts</id>
<updated>2007-09-04T05:34:42Z</updated>
<title type="text">App Test</title>
<subtitle type="text">Just another WordPress weblog</subtitle>
<link rel="first" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<link rel="last" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<link rel="self" type="app
lication/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<rights type="text">Copyright 2007</rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-two/</id>
    <title type="text">Entry Mini-4</title>
    <updated>2007-09-04T05:34:42Z</updated>
    <published>2007-09-04T05:34:42Z</published>
    <app:edited>2007-09-04T05:34:42Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-two/" />
    <content type="text">Content of Mini-4</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/5" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summar
y type="text">Content of Mini-4
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-three/</id>
    <title type="text">Entry Mini Three</title>
    <updated>2007-09-04T05:34:39Z</updated>
    <published>2007-09-04T05:34:39Z</published>
    <app:edited>2007-09-04T05:34:39Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-three/" />
    <content type="text">Content of Mini Three</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/6" />
    <category scheme="http://rubypad4/wordpress" t
erm="Uncategorized" />
    <summary type="text">Content of Mini Three
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-one/</id>
    <title type="text">Entry Mini One</title>
    <updated>2007-09-04T05:34:34Z</updated>
    <published>2007-09-04T05:34:34Z</published>
    <app:edited>2007-09-04T05:34:34Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-one/" />
    <content type="text">Content of Mini One</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/4" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Content of Mini One
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="htt
p://www.w3.org/2007/app" xml:lang="en">
    <id></id>
    <title type="text">Hello world!</title>
    <updated>2007-09-03T18:47:32Z</updated>
    <published>2007-09-03T18:47:32Z</published>
    <app:edited>2007-09-03T18:47:32Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>admin</name>
        <email>rubys@intertwingly.net</email>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/0
3/hello-world/" />
    <content type="text">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/1" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
</summary>
</entry>
</feed>

In-place update with put

To server:
PUT /wordpress/wp-app.php/post/3 HTTP/1.1\r
Accept: */*\r
Content-Type: application/atom+xml;type=entry\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Content-Length: 767\r
Host: rubypad4\r
\r
<?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
<title>Let\342\200\231s all do the Ape!</title>
<author><name>The Atom Protocol Exerciser</name></author>
<id>http://rubypad4/wordpress/index.php/2007/09/04/ape-448/</id>
<updated>2007-09-04T01:34:28-04:00</updated>
<link href='http://www.tbray.org/ape'/> <summary type='html'>Summary from the &amp;lt;APE&amp;gt; at 2007-09-04T01:34:28-04:00</summary>
<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'><p>A test post from the &lt;APE&gt; at 2007-09-04T01:34:28-04:00</p><p>If you see this in an entry, it's probably a left-over from an unsuccessful Ape run; feel free to delete it.</p></div></content>
<dc:subject xmlns:dc='http://purl.org/dc/elements/1.1/'>Simians</dc:subject>
</entry>
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:30 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Transfer-Encoding: chunked\r
Content-Type: text/plain; charset=UTF-8\r
\r
0\r
\r

Posting new entry

To server:
POST /wordpress/wp-app.php/posts HTTP/1.1\r
Slug: ape-448\r
Accept: */*\r
Content-Type: application/atom+xml;type=entry\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Content-Length: 880\r
Host: rubypad4\r
\r
<?xml version='1.0' ?>
<entry xmlns='http://www.w3.org/2005/Atom'>
<title>From the &lt;APE&gt; (\343\202\265\343\203\253)</title>
<author><name>The Atom Protocol Exerciser</name></author>
<id>tag:tbray.org,2005:308671611662633538305191662236</id>
<updated>2007-09-04T01:34:20-04:00</updated>
<link href='http://www.tbray.org/ape'/> <summary type='html'>Summary from the &amp;lt;APE&amp;gt; at 2007-09-04T01:34:20-04:00</summary>
<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'><p>A test post from the &lt;APE&gt; at 2007-09-04T01:34:20-04:00</p><p>If you see this in an entry, it's probably a left-over from an unsuccessful Ape run; feel free to delete it.</p></div></content>
<dc:subject xmlns:dc='http://purl.org/dc/elements/1.1/'>Simians</dc:subject>
<atom:category term='Uncategorized' scheme='http://rubypad4/wordpress' xmlns:atom='http://www.w3.org/2005/Atom'/></entry>
From Server:
HTTP/1.1 201 Created\r
Date: Tue, 04 Sep 2007 05:34:21 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Content-Location: http://rubypad4/wordpress/wp-app.php/post/3\r
Location: http://rubypad4/wordpress/wp-app.php/post/3\r
Content-Length: 1140\r
Content-Type: application/atom+xml\r
\r
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/ape-448/</id>
    <title type="text">From the &lt;APE&gt; (\343\202\265\343\203\253)</title>
    <updated>2007-09-04T05:34:21Z</updated>
    <published>2007-09-04T05:34:21Z</published>
    <app:edited>2007-09-04T05:34:21Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/ape-448/" />
    <content type="xhtml"><div xmlns='http://www.w3.org/1999/xhtml'><div><p>A test post f
rom the &lt;APE&gt; at 2007-09-04T01:34:20-04:00</p><p>If you see this in an entry, it&apos;s probably a left-over from an unsuccessful Ape run; feel free to delete it.</p></div></div></content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/3" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Summary from the &lt;APE&gt; at 2007-09-04T01:34:20-04:00</summary>
</entry>

Page 1 of Entries with multi-post

To server:
GET /wordpress/wp-app.php/posts HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:39 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
X-Pingback: http://rubypad4/wordpress/xmlrpc.php\r
Expires: Wed, 11 Jan 1984 05:00:00 GMT\r
Last-Modified: Tue, 04 Sep 2007 05:34:39 GMT\r
Cache-Control: no-cache, must-revalidate, max-age=0\r
Pragma: no-cache\r
Connection: close\r
Content-Length: 4292\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
<id>http://rubypad4/wordpress/wp-app.php/posts</id>
<updated>2007-09-04T05:34:39Z</updated>
<title type="text">App Test</title>
<subtitle type="text">Just another WordPress weblog</subtitle>
<link rel="first" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<link rel="last" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<link rel="self" type="app
lication/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<rights type="text">Copyright 2007</rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-three/</id>
    <title type="text">Entry Mini Three</title>
    <updated>2007-09-04T05:34:39Z</updated>
    <published>2007-09-04T05:34:39Z</published>
    <app:edited>2007-09-04T05:34:39Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-three/" />
    <content type="text">Content of Mini Three</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/6" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized"
/>
    <summary type="text">Content of Mini Three
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-two/</id>
    <title type="text">Entry Mini Two</title>
    <updated>2007-09-04T05:34:36Z</updated>
    <published>2007-09-04T05:34:36Z</published>
    <app:edited>2007-09-04T05:34:36Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-two/" />
    <content type="text">Content of Mini Two</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/5" />
    <category scheme="http://rubypad4/word
press" term="Uncategorized" />
    <summary type="text">Content of Mini Two
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-one/</id>
    <title type="text">Entry Mini One</title>
    <updated>2007-09-04T05:34:34Z</updated>
    <published>2007-09-04T05:34:34Z</published>
    <app:edited>2007-09-04T05:34:34Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/entry-mini-one/" />
    <content type="text">Content of Mini One</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/4" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Content of Mini One
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:ap
p="http://www.w3.org/2007/app" xml:lang="en">
    <id></id>
    <title type="text">Hello world!</title>
    <updated>2007-09-03T18:47:32Z</updated>
    <published>2007-09-03T18:47:32Z</published>
    <app:edited>2007-09-03T18:47:32Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>admin</name>
        <email>rubys@intertwingly.net</email>
    </author>
    <link href="http://rubypad4/wordpress/index.php/200
7/09/03/hello-world/" />
    <content type="text">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/1" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
</summary>
</entry>
</feed>

Page 1 of Entry collection

To server:
GET /wordpress/wp-app.php/posts HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:19 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
X-Pingback: http://rubypad4/wordpress/xmlrpc.php\r
Expires: Wed, 11 Jan 1984 05:00:00 GMT\r
Last-Modified: Tue, 04 Sep 2007 05:34:20 GMT\r
Cache-Control: no-cache, must-revalidate, max-age=0\r
Pragma: no-cache\r
Connection: close\r
Content-Length: 1663\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
<id>http://rubypad4/wordpress/wp-app.php/posts</id>
<updated>2007-09-03T18:47:32Z</updated>
<title type="text">App Test</title>
<subtitle type="text">Just another WordPress weblog</subtitle>
<link rel="first" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<link rel="last" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<link rel="self" type="app
lication/atom+xml" href="http://rubypad4/wordpress/wp-app.php/posts" />
<rights type="text">Copyright 2007</rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id></id>
    <title type="text">Hello world!</title>
    <updated>2007-09-03T18:47:32Z</updated>
    <published>2007-0
9-03T18:47:32Z</published>
    <app:edited>2007-09-03T18:47:32Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>admin</name>
        <email>rubys@intertwingly.net</email>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/03/hello-world/" />
    <content type="text">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/1" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
</summary>
</entry>
</feed>

Post image to media collection

To server:
POST /wordpress/wp-app.php/attachments HTTP/1.1\r
Slug: apix-63278\r
Accept: */*\r
Content-Type: image/jpeg\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Content-Length: 0\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 201 Created\r
Date: Tue, 04 Sep 2007 05:34:44 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Location: http://rubypad4/wordpress/wp-app.php/attachments/8\r
Content-Length: 938\r
Content-Type: application/atom+xml\r
\r
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/apix-63278.jpeg</id>
    <title type="text">apix-63278.jpeg</title>
    <updated>2007-09-04T05:34:44Z</updated>
    <published>2007-09-04T05:34:44Z</published>
    <app:edited>2007-09-04T05:34:44Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/8" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09/apix-63278.jpeg"/>
    <link rel="edit" href=
"http://rubypad4/wordpress/wp-app.php/post/8" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">apix-63278.jpeg
</summary>
</entry>

Page 1 of MLEs post-update

To server:
GET /wordpress/wp-app.php/attachments HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:52 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
X-Pingback: http://rubypad4/wordpress/xmlrpc.php\r
Expires: Wed, 11 Jan 1984 05:00:00 GMT\r
Last-Modified: Tue, 04 Sep 2007 05:34:52 GMT\r
Cache-Control: no-cache, must-revalidate, max-age=0\r
Pragma: no-cache\r
Connection: close\r
Content-Length: 3628\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
<id>http://rubypad4/wordpress/wp-app.php/attachments</id>
<updated>2007-09-03T18:47:32Z</updated>
<title type="text">App Test</title>
<subtitle type="text">Just another WordPress weblog</subtitle>
<link rel="first" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/attachments" />
<link rel="last" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/attachments" />
<link re
l="self" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/attachments" />
<rights type="text">Copyright 2007</rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-two.jpeg</id>
    <title type="text">picture-two.jpeg</title>
    <updated>2007-09-04T05:34:52Z</updated>
    <published>2007-09-04T05:34:52Z</published>
    <app:edited>2007-09-04T05:34:52Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/10" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-two.jpeg"/>
    <link rel="edit" href="http://rubypad4/wordpress
/wp-app.php/post/10" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">picture-two.jpeg
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-three.jpeg</id>
    <title type="text">picture-three.jpeg</title>
    <updated>2007-09-04T05:34:49Z</updated>
    <published>2007-09-04T05:34:49Z</published>
    <app:edited>2007-09-04T05:34:49Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/11" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-three.jpeg"/>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/11" />
    <category scheme="http://rubypad4/wordpress" term
="Uncategorized" />
    <summary type="text">picture-three.jpeg
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-one.jpeg</id>
    <title type="text">picture-one.jpeg</title>
    <updated>2007-09-04T05:34:45Z</updated>
    <published>2007-09-04T05:34:45Z</published>
    <app:edited>2007-09-04T05:34:45Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/9" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-one.jpeg"/>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/9" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">picture-one.jpeg
</summary>
</entry>
<
/feed>

Retrieval of media link entry

To server:
GET /wordpress/wp-app.php/attachments/8 HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:44 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Connection: close\r
Content-Length: 977\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/apix-63278.jpeg</id>
    <title type="text">apix-63278.jpeg</title>
    <updated>2007-09-04T05:34:44Z</updated>
    <published>2007-09-04T05:34:44Z</published>
    <app:edited>2007-09-04T05:34:44Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/8" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09
/apix-63278.jpeg"/>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/8" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">apix-63278.jpeg
</summary>
</entry>

Fetch image to get ETag

To server:
GET /wordpress/wp-app.php/attachment/file/10 HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:52 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Connection: close\r
Transfer-Encoding: chunked\r
Content-Type: image/jpeg\r
\r
0\r
\r

Retrieval of media resource

To server:
GET /wordpress/wp-content/uploads/2007/09/apix-63278.jpeg HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:44 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
Last-Modified: Tue, 04 Sep 2007 05:34:44 GMT\r
ETag: W/"3840c3-0-a5818500"\r
Accept-Ranges: bytes\r
Content-Length: 0\r
Content-Type: image/jpeg\r
\r

Retrieval of Service Document

To server:
GET /wordpress/wp-app.php/service HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:16 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Connection: close\r
Content-Length: 694\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atomsvc+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
<workspace>
<atom:title>WordPress Workspace</atom:title>
<collection href="http://rubypad4/wordpress/wp-app.php/posts">
<atom:title>WordPress Posts</atom:title>
<accept>application/atom+xml;type=entry</accept>
<categories href="http://rubypad4/wordpress/wp-app.php/categories" />
</collection>
<collection href="http://rubypad4/wordpress/wp-app.php/attachments">
<atom:title>WordPress Media</atom:title>
<accept>image/*</accept><accept>audio/*</accept><accept>video/*</accept>
</collection>
</workspace>
</service>

Page 1 of Pictures from multi-post

To server:
GET /wordpress/wp-app.php/attachments HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:51 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
X-Pingback: http://rubypad4/wordpress/xmlrpc.php\r
Expires: Wed, 11 Jan 1984 05:00:00 GMT\r
Last-Modified: Tue, 04 Sep 2007 05:34:51 GMT\r
Cache-Control: no-cache, must-revalidate, max-age=0\r
Pragma: no-cache\r
Connection: close\r
Content-Length: 3628\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
<id>http://rubypad4/wordpress/wp-app.php/attachments</id>
<updated>2007-09-03T18:47:32Z</updated>
<title type="text">App Test</title>
<subtitle type="text">Just another WordPress weblog</subtitle>
<link rel="first" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/attachments" />
<link rel="last" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/attachments" />
<link re
l="self" type="application/atom+xml" href="http://rubypad4/wordpress/wp-app.php/attachments" />
<rights type="text">Copyright 2007</rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-three.jpeg</id>
    <title type="text">picture-three.jpeg</title>
    <updated>2007-09-04T05:34:49Z</updated>
    <published>2007-09-04T05:34:49Z</published>
    <app:edited>2007-09-04T05:34:49Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/11" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-three.jpeg"/>
    <link rel="edit" href="http://rubypad4/wor
dpress/wp-app.php/post/11" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">picture-three.jpeg
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-two.jpeg</id>
    <title type="text">picture-two.jpeg</title>
    <updated>2007-09-04T05:34:47Z</updated>
    <published>2007-09-04T05:34:47Z</published>
    <app:edited>2007-09-04T05:34:47Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/10" />
    <content type="image/jpeg" src="http://rubypad4/wo
rdpress/wp-content/uploads/2007/09/picture-two.jpeg"/>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/10" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">picture-two.jpeg
</summary>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-one.jpeg</id>
    <title type="text">picture-one.jpeg</title>
    <updated>2007-09-04T05:34:45Z</updated>
    <published>2007-09-04T05:34:45Z</published>
    <app:edited>2007-09-04T05:34:45Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link rel="edit-media" href="http://rubypad4/wordpress/wp-app.php/attachment/file/9" />
    <content type="image/jpeg" src="http://rubypad4/wordpress/wp-content/uploads/2007/09/picture-one.jpeg"/>
    <link rel="edit" href="ht
tp://rubypad4/wordpress/wp-app.php/post/9" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">picture-one.jpeg
</summary>
</entry>
</feed>

Retrieval of unclean XHTML entry

To server:
GET /wordpress/wp-app.php/post/7 HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:43 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Connection: close\r
Content-Length: 1086\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/unclean/</id>
    <title type="text">Unclean!</title>
    <updated>2007-09-04T05:34:43Z</updated>
    <published>2007-09-04T05:34:43Z</published>
    <app:edited>2007-09-04T05:34:43Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/unclean/" />
    <content type="xhtml"><div xmlns='http://www.w3.org/1999/xhtml'><div><p>OK</p>No No No<a href="/no-problemo">aah</a><a
href="evil">ouch</a></div></div></content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/7" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="xhtml"><div xmlns='http://www.w3.org/1999/xhtml'><div><p>hey</p> alert(&apos;XXX&apos;)<p>Hey</p></div></div></summary>
</entry>

Deletion of media link entry

To server:
DELETE /wordpress/wp-app.php/post/8 HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:44 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Transfer-Encoding: chunked\r
Content-Type: text/plain; charset=UTF-8\r
\r
0\r
\r

New Entry deletion

To server:
DELETE /wordpress/wp-app.php/post/3 HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:31 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Transfer-Encoding: chunked\r
Content-Type: text/plain; charset=UTF-8\r
\r
0\r
\r

Retrieval of newly created entry

To server:
GET /wordpress/wp-app.php/post/3 HTTP/1.1\r
Accept: */*\r
Authorization: Basic cnVieXM6cGFzc3dvcmQ=\r
Host: rubypad4\r
\r
From Server:
HTTP/1.1 200 OK\r
Date: Tue, 04 Sep 2007 05:34:21 GMT\r
Server: Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1\r
X-Powered-By: PHP/4.4.2-1build1\r
Connection: close\r
Content-Length: 1179\r
Content-Disposition: attachment; filename=atom.xml\r
Content-Type: application/atom+xml\r
\r
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app" xml:lang="en">
    <id>http://rubypad4/wordpress/index.php/2007/09/04/ape-448/</id>
    <title type="text">From the &lt;APE&gt; (\343\202\265\343\203\253)</title>
    <updated>2007-09-04T05:34:21Z</updated>
    <published>2007-09-04T05:34:21Z</published>
    <app:edited>2007-09-04T05:34:21Z</app:edited>
    <app:control>
        <app:draft>no</app:draft>
    </app:control>
    <author>
        <name>rubys</name>
        <email>rubys@intertwingly.net</email>
        <uri>http://intertwingly.net/blog/</uri>
    </author>
    <link href="http://rubypad4/wordpress/index.php/2007/09/04/ape-448/" />
    <content type="xhtml"><div xmlns='http://www.w3.org/1999/xhtml'><div><p>A test post from the &lt;A
PE&gt; at 2007-09-04T01:34:20-04:00</p><p>If you see this in an entry, it&apos;s probably a left-over from an unsuccessful Ape run; feel free to delete it.</p></div></div></content>
    <link rel="edit" href="http://rubypad4/wordpress/wp-app.php/post/3" />
    <category scheme="http://rubypad4/wordpress" term="Uncategorized" />
    <summary type="text">Summary from the &lt;APE&gt; at 2007-09-04T01:34:20-04:00</summary>
</entry>