コード例 #1
0
    }
    $testdr = $testsac->addExtraAtomEntry($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 add multipart atom entry and file (" . $testmultipart2 . ") to " . $edit_iri . "\n";
    if (empty($testuser)) {
        print "As: anonymous\n";
    } else {
        print "As: " . $testuser . "\n";
    }
    $testdr = $testsac->addExtraMultipartPackage($edit_iri, $testuser, $testpw, $testobo, $testmultipart2, $testpackaging, 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 complete the deposit at " . $complete_url . "\n";
    if (empty($testuser)) {
        print "As: anonymous\n";
    } else {
        print "As: " . $testuser . "\n";
    }
    $testdr = $testsac->completeIncompleteDeposit($testdepositurl, $testuser, $testpw, $testobo);