Hi everybody -
I recently noticed that viaf.org's SRU service recently changed and
now requires conneg to return an XML response (which is probably a
bug, but that's not really a problem in my mind). If you have curl
available to you, try:
curl -v "http://viaf.org/search?query=local.names+all+%22Rowson,%20Susanna%22&version=1.1&maximumRecords=100&operation=searchRetrieve&stylesheet=xsl/results.xsl&sortKeys=holdingscount"
Note the response is xhtml (and served as "text/html")
and
curl -v -H "Accept: text/xml"
"http://viaf.org/search?query=local.names+all+%22Rowson,%20Susanna%22&version=1.1&maximumRecords=100&operation=searchRetrieve&stylesheet=xsl/results.xsl&sortKeys=holdingscount"
(application/xml also works)
This made me think that it would make sense for sruby to *always* send
the appropriate Accept header (I guess it's sending */* now), but
before I add that, what is the appropriate mime type for SRU over HTTP
GET? "text/xml"? "application/xml"?
Thanks,
-Ross.
|