Geoserver REST API delete layer

المشرف العام

Administrator
طاقم الإدارة
I´m using Geoserver REST Api to create a layer from a shape file. That shape file needs to be updated on a regular bassis. Since there is no replace function on the REST API, i´m trying to delete the layer, replace the files and then recreate the layer with the new shape file. pretty much like the answer at How to upload a shapefile to geoserver using cURL and replace file?

The problem I´m facing is that i´m receiving a 403 Forbidden message when I try to delete the layer. Since I have no problems publishing and editing layers I guess it is a security problem but have no clue of where I must change such security features.

The cURL command I´m sending is:

curl -v -u user:pass -XDELETE -H http://localhost:8080/geoserver/rest/layers/LayerName.xmlSucth request gives me:

http/1.1 403 Forbidden

أكثر...
 
أعلى