2

I have tried that:

curl -u admin:geoserver -XPUT -H "Content-type: text/css" -d @data_clone.css http://localhost:8080/geoserver/rest/workspaces/sde/styles/style_clone.css 

It does not change anything. The way is working well for SLD type-styles. But I can not find any tutorial for CSS type styles to upload or update syle.

There is no error. It responses nothing.

1 Answer 1

3

The content type should be application/vnd.geoserver.geocss+css.

Also, check the result status and headers, they probably contain some useful information, by adding either "-v" or "-D" to the curl command lines.

2
  • Thank you so much, it works. Commented Mar 4, 2020 at 7:22
  • Now I can update existed style. When I am creating style it says default style. How can I specify, style name, file name, the format in this content type? Commented Mar 4, 2020 at 7:38

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.