Montana State Library has nearly 5300 PURLZ on
purl.org.
Thanks to Jeff Young's direction, I used the following vb script to
pull a masterlist of all our PURLs. I did get an xml response, which
was delightful. However, it contained only 100 items out of 5300. How
do I use the code to get all the PURLs we have at IA? Is this a coding
issue on my end, a lack of documentation, or an issue with the default
limits of the masterlist response?
Thanks,
Here's the vb that returned just 100 items.
'============================================================
'GET the master list
'============================================================
sender.open "Get", "
http://purl.org/admin/purl/?
maintainers=maintainer1, maintainer2, maintainer3"
sender.send
'WScript.echo sender.responseText
Here's more vb for context:
'===========================================================
'Get a session cookie
'===========================================================
Set sender = CreateObject("MSXML2.ServerXMLHTTP")
sender.open "GET", "
http://purl.org/admin/loginstatus"
sender.send
'WScript.echo sender.responseText
cookie = sender.getResponseHeader("Set-Cookie")
Set sender = Nothing
'=============================================================
'POST the same Session cookie back to login and keep the session open
'=============================================================
Set sender = CreateObject("MSXML2.ServerXMLHTTP")
sender.open "POST", "
http://purl.org/admin/login/login-submit.bsh?
id=xxxxxxxx&passwd=yyyyyyyyy&"
sender.setRequestHeader "SET-COOKIE", cookie
sender.send
'============================================================
'GET the master list
'============================================================
sender.open "Get", "
http://purl.org/admin/purl/?
maintainers=maintainer1, maintainer2, maintainer3"
sender.send
'WScript.echo sender.responseText
'=============================================================
'Record the response
'=============================================================
prehtml = sender.responseText
xmlmasterlistresponse.WriteLine prehtml + Chr(13)