On Sat, Oct 31, 2009 at 11:08 AM, Yonik Seeley <yo...@lucidimagination.com> wrote: > I personally think it would be cleaner to allow a post of just a <doc> > (or multiple with a surrounding <docs> tag), esp now that we can put > modifiers in the URL.
Exactly. The action should be in the url. > > For now, just use shell scripting I guess: > > $ (echo '<add>'; cat file.xml; echo '</add>') | curl $URL > --data-binary @- -H 'Content-type:text/xml; charset=utf-8' > Well, that's cleaner than what I was going to do, which was to use sed to add the <add></add> tags and then remove them afterwards. Thanks. -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin