On Tue, 2019-10-22 at 19:32 -0400, Bridger Dyson-Smith wrote:
>
> http://export.arxiv.org/oai2?verb=Identify'/>)//@status/data()
>
> returns '200', but trying
>
> http:send-request(<http:request method='get' href='
> http://export.arxiv.org/oai2?verb=Identify'/>)/h:response/@status
>
> fails.
I'm guessing that the first request sends you an auth token, and that
you're supposed to send this as a parameter in the second token?
How exactly does the second call fail?
Apologies for not clarifying. The @href points to an OAI-PMH endpoint, which simply returns a XML response[1] saying, "This is an OAI-PMH endpoint, here's an administrator's email address, plus some other stuff." So, there aren't any tokens being passed back in forth in this case (to be honest, there are resumption tokens that can be passed back in to an OAI provider for other types of requests).
I had thought it might be a good idea to try to think about the HTTP status ('200', '404', etc) in a thing I'm working on, and while I realize I can get to it with a `//@status` , I had thought a more direct expression would be more suited (what if there are other `@status` attributes, etc). I even tried taking my shoes off, to no avail. :)
In any case, thank you!
Best,
Bridger
--
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
[1] The full response from arXiv's OAI endpoint looks like this:
```
```