Shell script for curl-based imports
#!/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