I was using that as a model but banging against the content header all the
time. The endpoint was created in the web GUI (add image mosaic data store) as
it produced errors if the end point didn’t already exist. My original attempt
was copy/paste from that example but with gns instead of topp.
Hi Phil,
I'm not quire sure (not a rest config expert), but the endpoint in question
might not be accepting zip files.
The example in the documentation works in a different way, see if this
works for you:
https://docs.geoserver.org/latest/en/user/rest/imagemosaic.html#uploading-a-new-image-mosaic
That was my original line but same error message
From: br...@frogmouth.net
Sent: Friday, October 26, 2018 5:13:34 PM
To: Phil Scadden; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] What is wrong with the REST line - tells me it
cant
Did you maybe mean "@swath.zip"?
Brad
From: Phil Scadden
Sent: Friday, 26 October 2018 2:39 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] What is wrong with the REST line - tells me it
cant determine content type
curl -v -u admin:xxx -XPUT -H
curl -v -u admin:xxx -XPUT -H "Content-type:application/zip" --data-binary
swath.zip http://myserver/geoserver/rest/workspaces/gns/swath/swath.imagemosaic
gives error.
"Could not determine format. Try setting the Content-type header"
Geoserver 2.11.0
The header looks correct to me. A typo