Hello people, I need help. I'm trying to develop a Android App connected to Drupal website with Restful-Service. I just created login, logout and the retrieve the nodes's content. I used PUT http-method but I didn't reach to modify node's info.
I tried:
url=......endpoint/node/id.json and also ......endpoint/node/id
PUT
Content-Type= "application/json;charset=UTF-8" also with Accept= "application/json" also with setFixedLengthStreamingMode(json.toString().getBytes().length);
Cookie = session_name=session_id
X-CSRF-Token = token
OutputStreamWriter also PrintWriter(new DataOutputStream) also BufferedWriter(new OutputStreamWriter)
Data: json.toString() also json.toString().getBytes() also json.toString().replaceAll("\"", "\\\\\"");

I always receive FileNotFoundException. I don't understand how man can modify a node' info. The json string ist OK. I always print the string before to send it. On the Drupal side I have all permissions for to change, to retrieve and to delete nodes.

Thanks in advance.

The function that work are:
Node retrieve ist:
url=......endpoint/node/id
GET
Content-Type= "application/x-www-form-urlencoded;charset=UTF-8"
Cookie = session_name=session_id
X-CSRF-Token = token

Login ist:
url=......endpoint/user/login
POST
Content-Type= "application/x-www-form-urlencoded;charset=UTF-8"
OutputStreamWriter wr = new OutputStreamWriter(urlConnection.getOutputStream());
wr.write("username="+split_r[0]+"&password="+split_r[1]);

Logout ist:
url=......endpoint/user/logout.json
POST
Content-Type= "application/x-www-form-urlencoded;charset=UTF-8"
Cookie = session_name=session_id
X-CSRF-Token = token