<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: rest code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 21 Aug 2008 15:19:19 GMT</pubDate>
    <description>DZone Snippets: rest code</description>
    <item>
      <title>Post XML using curl</title>
      <link>http://snippets.dzone.com/posts/show/181</link>
      <description>You can use curl on the command line to do a POST to an endpoint. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;echo '&lt;doc&gt;&lt;item&gt;Some content.&lt;/item&gt;&lt;/doc&gt;' | curl -X POST -H 'Content-type: text/xml' -d @- http://example.com/restapi&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This is handy for adding web services to applications that do not do web services but can do command lines--FileMaker for example.</description>
      <pubDate>Sat, 16 Apr 2005 09:42:57 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/181</guid>
      <author>beutelevision (Thomas Beutel)</author>
    </item>
  </channel>
</rss>
