...
I have not been able to do a batch creation of PURLs
using PURLZ 1.2. I am using curl to do an authentication and then a POST and I get a cryptic error message as a result.
No Format |
---|
$ curl -b cookies.txt -c cookies.txt -d "id=bdc34&password=test&referrer=doc/test" --url http://corson-mac.mannlib.cornell.edu:8080/admin/login/login-submit.bsh
$ ./generateXml.py 1000 | curl -b cookies.txt -c cookies.txt --url http://corson-mac.mannlib.cornell.edu:8080/admin/purls -d @- |
generateXml.py is a python script that generates output like:
No Format |
---|
<?xml version="1.0"?>
<purls>
<purl id="/tld/subdomain/test0" type="301">
<maintainers><maintainer id="bdc34"/></maintainers>
<target url="http://example.com/test0"/>
</purl>
</purls>
|