--I created an empty server wiki and added a tiddler with title "New". GET request against "http://127.0.0.1:8080/recipes/default/tiddlers/New" returns proper response. However various attempts at PUT request fails with the following error message.HTTP/1.1 403 'X-Requested-With' header required to login to 'My ~TiddlyWiki'
Date: Tue, 26 May 2020 01:43:14 GMT
Connection: keep-alive
Transfer-Encoding: chunkedCommands I attemptedcurl -X PUT -i 'http://127.0.0.1:8080/recipes/default/tiddlers/New' --data '{
"title": "New",
"tags": "FirstTag [[Second Tag]]",
"my-custom-field": "Field value"
}'
curl -X PUT -H 'Content-Type: application/json' -i 'http://127.0.0.1:8080/recipes/default/tiddlers/New' --data '{
"title": "New",
"tags": "FirstTag [[Second Tag]]",
"my-custom-field": "Field value"
}'
curl -X PUT -H 'X-Requested-With: XMLHttpRequest' -H 'Content-Type: application/json' -i 'http://127.0.0.1:8080/recipes/default/tiddlers/New' --data '{
"title": "New",
"tags": "FirstTag [[Second Tag]]",
"my-custom-field": "Field value"
}
curl -X GET -H 'X-Requested-With: XMLHttpRequest' -i 'http://127.0.0.1:8080/recipes/default/tiddlers/New' --data '{
"title": "New",
"tags": "FirstTag [[Second Tag]]",
"fields": {
"my-custom-field": "Field value"
}
}'Is there a value ofX-Requested-With header that is necessary?Anyone who successfully managed to issue a PUT request against the TW-Server, could you furnish the command you issued?Sincerely,Riz
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ecd1fceb-fc68-4464-a4cc-d1044ba6239f%40googlegroups.com.