RestV2 Web Services - POST and PUT not working

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
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
<label>New Folder</label>
<description>This is my new folder
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
darren.yates's picture
Joined: Dec 7 2015 - 1:31am
Last seen: 6 years 6 months ago

1 Answer:

Has similar situation once. It's was firewall prohibiting "POST" and "PUT". Check with your network administrator.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago