Re: [Geoserver-users] Can't create style via REST.

2013-10-22 Thread Andrea Aime
Yes, that's the way. Cheers Andrea On Tue, Oct 22, 2013 at 8:30 AM, Макс Кливер wrote: > Sorry now i know my mistake. > Command above only create blank style, To upload sld file i gonna use PUT > method. > > > On Tue, Oct 22, 2013 at 11:45 AM, Макс Кливер wrote: > >> And in console i get: >>

Re: [Geoserver-users] Can't create style via REST.

2013-10-21 Thread Макс Кливер
Sorry now i know my mistake. Command above only create blank style, To upload sld file i gonna use PUT method. On Tue, Oct 22, 2013 at 11:45 AM, Макс Кливер wrote: > And in console i get: > > *D:\>curl.exe -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d > " > >tester

Re: [Geoserver-users] Can't create style via REST.

2013-10-21 Thread Макс Кливер
And in console i get: *D:\>curl.exe -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "testerd:\tester.sld" http://localhost :8080/geoserver/rest/styles * Adding handle: conn: 0xa27878 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToP

[Geoserver-users] Can't create style via REST.

2013-10-21 Thread Макс Кливер
Hi. I try to create style from sld file via rest. I do: * curl.exe -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "testerd:\tester.sld" http://localhost:8080/geoserver/rest/styles* And in Geoserver i see empty style and error inside: *Could not fin