I'm using RESTFul Web Services module with Drupal 7. I can log in with basic authentication, get CSRF-token, get nodes, and so on.
The problem is with POST/PUT: I cannot get adding nodes to work. I get a node of type "page" and I use the same xml structure to do the post. But it doesn't work.
I'm using Delphi RAD Studio 2010 and Indy components to connect with RESTFul service. It works good with all restful request. When I do a POST, I get a 200 OK result, but the page is NOT added.
Here is the XML structure I use:
<node> <body> <value>This is a simple test page</value> <summary/> <format>full_html</format> </body> <type>page</type> <title>Test Page</title> <language>es</language> <status>1</status> <promote>0</promote> <sticky>0</sticky> <views>0</views> <day_views>0</day_views></node>
I send csrf-token with post, and server gives me 200 OK.
My question: Where could be the problem, perhaps the XML structure is incorrect?