Good morning,
I'm using the REST api of Geoserver but having troubles with the DELETE of
Styles via this API.
Per API documentation
(http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html ) I
do the CURL DELETE request to Geoserver with basic authentication, including
the following code in PHP in the CURL request:
curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($this->ch, CURLOPT_HTTPHEADER, array("Content-type:
application/atom+xml"));
//curl_setopt($this->ch, CURLOPT_HTTPHEADER,
array("application/vnd.ogc.sld+xml"));
The request send to Geoserver is the following:
"rest/styles/O10004_test2?purge=true" with the parameters above, creating the
request as can be found here:
http://docs.geoserver.org/latest/en/user/restconfig/rest-config-examples/rest-config-examples-php.html#delete-with-php-curl
When passed to Geoserver, the ResultCode is 405, a typical result when trying
to delete all styles at once with REST or doing some other method not allowed
at that moment. The style isn't deleted from Geoserver and the file (.sld)
isn't purged, consistent with the rejection of the request. PUT and GET
requests regarding styles are working fine in the setup.
Anyone able to point me in the right direction? Any help would be much
appreciated.
Best regards,
Martijn Coenen
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users