You can see how the lookup feature works by using a simple HTTP client like the GNU "wget" application to do a GET, and reading its diagnostic output.. for example, this does a lookup of handle 123456789/1 using HTTP Basic authentication to login (assuming you have username/password login on your server):
wget [EMAIL PROTECTED] --http-password=PASSWORD -S http://MYDSPACE.mit.edu:8080/lni/dav/lookup/handle/123456789/1 Now, watch the headers -- the request as a whole will fail because "wget" is aggressive about responding to the HTTP 302 status with another GET on the real resource, but that GET probably isn't allowed or is missing some option. Anyway, just look for the Location: header in the first response: Connecting to rotarran.mit.edu|18.42.4.43|:8080... connected. HTTP request sent, awaiting response... HTTP/1.1 302 These are not the droids you are looking for. Set-Cookie: DSpaceDavAuth=1212468843785!1!18.42.4.8!ac52bf780d4bb6eb486b810a7d 5c4f24; Path=/lni Location: http://rotarran.mit.edu:8080/lni/dav/dso_123456789%241 ^^^^^^^^^^ Content-Length: 0 Date: Tue, 03 Jun 2008 04:54:03 GMT Server: Apache-Coyote/1.1 Connection: Keep-Alive {Here's the second try, which fails.. ignore it, we've got what we need.} Location: http://rotarran.mit.edu:8080/lni/dav/dso_123456789%241 [following] --00:54:03-- http://rotarran.mit.edu:8080/lni/dav/dso_123456789%241 => `dso_123456789$1' Reusing existing connection to rotarran.mit.edu:8080. HTTP request sent, awaiting response... HTTP/1.1 501 GET method not implemented for Community. Content-Type: text/html;charset=utf-8 Content-Length: 1112 Date: Tue, 03 Jun 2008 04:54:03 GMT Server: Apache-Coyote/1.1 Connection: close 00:54:03 ERROR 501: GET method not implemented for Community.. This ought to show how to implement what you need with Apache HTTPClient or something like that. You're not using Perl, are you? The WebDAV library on CPAN was horribly broken last I looked, not really usable for this at all. Also, note that you don't *need* to go through the hierarchy to get at any Handle in the archive. If you already have the Handle of the resource you're looking for, just do a "lookup" to get its URL and use that. Traversing the hierarchy is just for exploring, and because it's the model of HTTP and WebDAV. -- Larry > Thanks for the helpful response. I've still been unable to do a lookup > or a get, but I'm concentrating right now on walking through the > hierarchy to learn what turns up and what kind of properties I'll find. > When I get comfortable with that, I'll re-read your message and try > again. > > - Rick > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech