Simplified code example: http://pastebin.com/9ZQxSXi9
Hi I've started to experiment with the Windows version of the 2.0.1 package and the web-service for gpodder.net. The first steps with retrieving JSON data per HTTP GET worked flawlessly. But posting JSON data against the similar web-service in the example above leads to a problem with the content length. As you can see, the example wraps the JSON data inside the respective Representation object. Viewing it in the debug view also shows the content but the size is at "-1". Submitting this to the webservice then leads to a 411 error due to insufficient content length and the request inside the response object doesn't include any attributes. I'm convinced there must be something wrong with my approach but for some reason I can't see the wood for the trees. Hopefully someone around here will have a better idea of where the implementation went wrong. Thanks in advance for your replies. Michael PS: The following JAR files have been added to the classpath: org.restlet.jar org.restlet.ext.httpclient.jar org.restlet.ext.json.jar org.apache.httpclient.jar org.apache.httpcore.jar org.apache.commons.logging.jar ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2657305

