Hi there,
I have a small little app that is posting to my posterous account
(integrating with my very basic text editor supporting markdown). I'm
noticing that most of the time when updating a post by submitting a
PUT the content doesn't really get updated even if the request returns
a 200.
Here is an example (I've taken out the sensitive info):
PUT
http://posterous.com/api/2/users/me/sites/<site_id>/posts/<post_id>?api_token=<api_token>
{params: '{'post[tags]': u'mongodb,video', 'post[title]': 'MongoDB
Videos from MongoSV', 'post[source]': 'blogsyncr', 'post[is_private]':
0, 'post[autopost]': 0, 'post[body]': '<p>... updated post body ....</
p>', 'id': u'post_id', 'post[display_date]': u'2010-12-11 11:59:52
GMT'}', '} => status: 200
After this successful PUT, if I check both the content it is the old
one in both the admin console and the blog. So, what is it:
- am I doing something wrong in that PUT? (if so why not getting back
something else than 200)
- is PUT not working?
- is there some caching mechanism that delays seeing the update? (in
which case I guess a much more appropriate response would be 202: The
request was accepted but not immediately acted upon)
:- alex