export token="<token-goes-here>"
dd if=/dev/urandom of=200MB-file.txt bs=1M count=200
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:systemMetadata xmlns:ns2="http://ns.dataone.org/service/types/v1" xmlns:ns3="http://ns.dataone.org/service/types/v2.0">
<serialVersion>1</serialVersion>
<identifier>cjones.10000.1</identifier>
<formatId>text/plain</formatId>
<size>209715200</size>
<checksum algorithm="MD5">9125b60f354f9d74311ddda715f237bb</checksum>
<submitter>http://orcid.org/0000-0002-8121-2341</submitter>
<rightsHolder>http://orcid.org/0000-0002-8121-2341</rightsHolder>
<fileName>200MB-file.txt</fileName>
</ns3:systemMetadata>
time curl \
-X POST \
-H "Authorization: Bearer ${token}" \
-F "pid=cjones.10000.1" \
-F "[email protected]" \
-F "[email protected]" \
"https://test.arcticdata.io/metacat/d1/mn/v2/object"
Note that the sysmeta is encoded before the object in the
curl
call
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<identifier xmlns="http://ns.dataone.org/service/types/v1">cjones.10000.1</identifier>
real 0m5.410s
user 0m0.238s
sys 0m0.196s