Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

#!/bin/bash

DATA=import.xml
URL="http://localhost:8180/cspace-services/imports"
CONTENT_TYPE="Content-Type: application/xml"
USER="admin@TENANT.cspace.berkeley.edu:PASSWORD"

echo "Sending $DATA"echo "to $URL"
echo "with content type $CONTENT_TYPE"
echo "as $USER"

curl -X POST $URL -i -u "$USER" -H "$CONTENT_TYPE" -T $DATA -o curl.out

mv $DATA ${DATA}.done
  • No labels