Hi,
I've got GWC working now (very cool!) and I'm trying to seed using the REST API. I've run into a few problems. My first question is: Should this work:
curl -T ./seedtest.xml -XPOST http://admin:geoserver@anonymised.com:8080/geoserver/gwc/rest/seed/airs_tpw:airs_tpw-2002-08-anom
with this in seedtest.xml:
<?xml version="1.0" encoding="UTF-8"?>
<seedRequest>
<name>airs_tpw:airs_tpw-2002-08-anom</name>
<bounds>
<coords>
<double>-20.05</double>
<double>-40.05000000000001</double>
<double>55.05000000000001</double>
<double>40.05</double>
</coords>
</bounds>
<srs>
<number>4326</number>
</srs>
<zoomStart>0</zoomStart>
<zoomStop>4</zoomStop>
<format>image/jpeg</format>
<!-- type can be
* seed (add tiles)
* reseed (replace tiles)
* truncate (remove tiles)
truncate is as of beta0 not implemented!
-->
<type>seed</type>
<!-- Number of seeding threads to run in parallel -->
<threadCount>2</threadCount>
</seedRequest>
I have not been able to get the above to work. I always get:
Unknown or malformed request. Please try again, somtimes the form is not properly received. This frequently happens on the first POST after a restart. The POST was to /geoserver/gwc/rest/seed/airs_tpw:airs_tpw-2002-08-anom
Secondly, is it possible to send this request as text/xml rather than having to write and post the XML file as a file upload?
Third question: When I seed using the web interface, which I've done successfully, the threads seem to keep going after all the tiles are written until I kill them manually. Is this also the behavior of the REST interface?
Thanks!
Greg