Can somebody explain me why I get a unsupported mediatype message when sending
the following statement to the DSpace demo website?:
curl -i --http1.0 --data-binary "@example.zip" -H "Content-Disposition:
filename=example.zip" -H "Content-Type: application/zip" -H "X-Packaging:
http://purl.org/net/sword/package/METSDSpaceSIP" --user
p.v.wonde...@ubvu.vu.nl:Nind1980
http://demo.dspace.org/sword/deposit/10673/44693
I use the example.zip file in
http://sword-app.svn.sourceforge.net/viewvcsword-app\sss\trunk.
The return message is:
HTTP/1.1 415 Unsupported Media Type
Server: Apache-Coyote/1.1
Content-Type: application/atom+xml;charset=UTF-8
Date: Fri, 09 Dec 2011 12:56:05 GMT
Connection: close
<sword:error xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sword="http://purl.org/net/sword/"
href="http://purl.org/net/sword/error/ErrorContent"><atom:summary>Unacceptable
packaging type in deposit request:
http://purl.org/net/sword/package/METSDSpaceSIP</atom:summary><atom:title>ERROR</atom:title><atom:updated>2011-12-09T12:56:05.882Z</atom:updated><sword:userAgent>curl/7.19.7
(x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3
libidn/1.15</sword:userAgent></sword:error>
Also when I install Dspace Sword locally on Ubuntu using Tomcat I get the same
error message.
Kind regards,
Peter van Wonderen
VU University
Amsterdam
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech