12/1/2008

Brian and Jon installed PURLZ on Jon's Mac laptop using the PURLZ 1.2 JAR file; installation was a simple series of steps initiated by double-clicking on the Jar file.

Notes

Comments

Problems with batch upload (bdc34):

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.

$ 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:

<?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>