} $status = $testsac->replaceFileContent($edit_media, $testuser, $testpw, $testobo, $testzipcontentfile, $testpackaging, $testcontenttype, false); print "Received HTTP status code: " . $status . "\n"; if ($status == 204) { echo "Content replaced\n"; } print "\n\n"; } if (false) { print "About to replace atom entry (" . $testatomentry2 . ") to " . $edit_iri . "\n"; if (empty($testuser)) { print "As: anonymous\n"; } else { print "As: " . $testuser . "\n"; } $testdr = $testsac->replaceMetadata($edit_iri, $testuser, $testpw, $testobo, $testatomentry2, false); print "Received HTTP status code: " . $testdr->sac_status . " (" . $testdr->sac_statusmessage . ")\n"; if ($testdr->sac_status >= 200 || $testdr->sac_status < 300) { $testdr->toString(); } print "\n\n"; } if (false) { print "About to replace multipart atom entry and file (" . $testmultipart2 . ") to " . $edit_iri . "\n"; if (empty($testuser)) { print "As: anonymous\n"; } else { print "As: " . $testuser . "\n"; } $testdr = $testsac->replaceMetadataAndFile($edit_iri, $testuser, $testpw, $testobo, $testmultipart2, $testpackaging, false); print "Received HTTP status code: " . $testdr->sac_status . " (" . $testdr->sac_statusmessage . ")\n";