I am using Rest V2 web services. All of my GET calls work fine. Whenever I try a POST or PUT I get response code "302 Found", which is actually redirecting me to the login screen.
It's as if I have read permissions but not write. I am using superuser that has no problems changing anything via the web UI.
Bizarrely I can make changes using PATCH but I'm not sure if PATCH can do all I need.
This is a simple example I've tried to create a folder. I am using the Advanced REST Client plugin for Chrome.
Host: http://<myserver>
Path: /e5rep/rest_v2/resources/Wibble
createFolders: true
POST
accept: application/xml
accept-encoding: gzip, deflate
accept-language: en-US,en;q=0.8
user-agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Authorization: Basic superuser:superuser
Content-Type: application/repository.folder+xml
Payload:
<folder>
<label>New Folder</label>
<description>This is my new folder
</description>
<permissionMask>0</permissionMask>
<creationDate>2016-07-04T12:18:47
</creationDate>
<updateDate>2016-07-04T12:18:47
</updateDate>
<version>0</version>
</folder>
Response
Status: 302: Found
Loading time: 28 ms
P3p: CP="ALL"
Location: http://<myserver>/e5rep/login.html
Content-Length: 0
Date: Wed, 27 Jul 2016 07:27:56 GMT