| When attempting to use the REST API to create and upload a new style, the following error is returned:
curl -u USER:PASS -X PUT -H 'Content-type: text/css' -d @roads.css http://localhost:8080/geoserver/rest/styles
This first command passes through fine, it is when using the next command (POST) that an error occurs
curl -u USER:PASS -X POST -H 'Content-type: text/css' -d "<style><name>roads</filename></style>" http://localhost:8080/geoserver/rest/styles
Could not determine format. Try setting the Content-type header.
|