[Geoserver-devel] [JIRA] (GEOS-8121) Content-type REST error for CSS plugin

Mstar Dev created an issue

GeoServer / BugGEOS-8121

Content-type REST error for CSS plugin

Issue Type:

BugBug

Affects Versions:

2.10.0

Assignee:

Unassigned

Components:

CSS

Created:

01/May/17 5:22 PM

Environment:

Mac OSX 10.11.6

Priority:

MediumMedium

Reporter:

Mstar Dev

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.929.1#100040-sha1:44337ab)

Atlassian logo