[email protected] tells curl to upload a file from your machine to the remote
server. In the same console where you run curl, does "ls d4d-at_21.xml"
print an error message?
--
David Winslow
OpenGeo - http://opengeo.org/
On Tue, Apr 24, 2012 at 4:43 AM, Olex Filevych <[email protected]>wrote:
> Hi Andea,
> thanks for the help. I tried it out and it really worked :). I could
> upload my .sld-files without problems. The only diffeculty I have is to
> upload a layer group.
> I have the following command:
> curl -u admin:passwortXY -XPOST -d @d4d_at_21.xml -H "Content-type:
> text/xml" http://ServerXY/geoserver/rest/layergroups. When I try it out,
> a warning pop up. It says the the daty from file d4d_at_21 could not be
> read. I definitely have a file named d4d_at_21.xml on the local data
> directory of geoserver on my computer. Do you have an idea why it doesnt
> work?
> thanks
> cheers
> Olex
>
> *Von:* Andrea Aime <[email protected]>
> *An:* Ralph Dell <[email protected]>
> *CC:* Olex Filevych <[email protected]>;
> [email protected]
> *Gesendet:* 16:19 Freitag, 20.April 2012
> *Betreff:* Re: [Geoserver-users] Importing styles from local root to
> geoserverrunning on external server
>
> On Fri, Apr 20, 2012 at 6:09 AM, Ralph Dell <[email protected]>wrote:
>
> Styles, Add a new style, at the bottom of the page you have the option
> to Browse, use that to connect to the .sld on your local server, than
> upload.****
> **
>
>
> Or, if you have many and want to automate the upload, look into the
> documentation for the "rest configuration" api
>
> Cheers
> Andrea
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users