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 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:

  <value>This is a simple test page</value>
<title>Test Page</title>

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?

1 Answer 1


After a lot of research about my question I've changed to format, which works fine.

I still think I have an error in my XML structure, but since it works with JSON now, I switched to using that instead.

UPDATE: With this data it works fine.

{ "title":"Test page", 
  "body":{  "value": "Aptent bene capto euismod ...",
  • I'd be interested to understand what the equivalent JSON would look like, can you edit this answer please by including that in it? Of course, I'd also be interested in an answer to the original question ... if anybody has a clue what the reason might be for the XML failure. Better still: what can one do to actually DEBUG the issue described in the original question? Mar 14, 2015 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.