That was my original line but same error message
________________________________
From: [email protected] <[email protected]>
Sent: Friday, October 26, 2018 5:13:34 PM
To: Phil Scadden; [email protected]
Subject: RE: [Geoserver-users] What is wrong with the REST line - tells me it 
cant determine content type

Did you maybe mean “@swath.zip”?

Brad


From: Phil Scadden <[email protected]>
Sent: Friday, 26 October 2018 2:39 PM
To: [email protected]
Subject: [Geoserver-users] What is wrong with the REST line - tells me it cant 
determine content type

curl -v -u admin:xxxxxxx -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 somewhere?
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to