Code Block |
---|
#!/bin/bashDATAbash DATA=import.xmlURLxml URL="http://localhost:8180/cspace-services/imports" CONTENT_TYPE="Content-Type: application/xml" USER="admin@coreadmin@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.outmvout mv $DATA ${DATA}.done |
Page Comparison
General
Content
Integrations