[Dev] Started a Simple Resolver in PHP....
Nika Jones
njones at ouno.com
Mon Jan 28 13:44:34 EST 2008
Hello,
I've gotten a simple resolver built in PHP... you can pass in a URL like
http://example.com/resolver.php/=test
And it will using a flat file or SQLite pull back something like
<XRDS ref="xri://test" xmlns="xri://$xrds"> <XRD xmlns="xri://
$xrd*($v*2.0)"> <Query>=test</Query> <Status code="100"/>
<Expires>2008-01-28T10:18:01.0800Z</Expires> <ProviderID>xri://=</
ProviderID> <LocalID priority="10">!7A49.7EDD.2592.F77B</LocalID>
<CanonicalID priority="10">=!7A49.7EDD.2592.F77B</CanonicalID>
<Service> <Type select="true">xri://$res*auth*($v*2.0)</Type>
<MediaType>application/xrds+xml;trust=none</MediaType> <URI>http://example.com/resolver.php/=test/
</URI> </Service> </XRD> </XRDS>
Note: the CanonicalID and LocalID's are hard coded for now...
However I'm not sure what to do with something like
http://example.com/resolver.php/=test/*foo
Is the *foo supposed to be on another server? and looked up as per the
spec "Select Next authority resolution service endpoint (see text)" in
the flow chart on page 24 of the xri-resolution-v2.0-wd-10.pdf?
Thanks in advanced.
Nika
----
NOTE: I sent this originally to the openxri-
users at lists.sourceforge.net list, but I didn't have a postmaster at ouno.com
set up so the mail was rejected... and it seems that it could be
rejected for the day... so I've sent it here in hopes of someone
forwarding it to the openxri list, however my next emails should be on
the openxri list (as I've set up the required postmaster account).
Thanks. Nika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dev.inames.net/pipermail/dev/attachments/20080128/7119a25b/attachment.html
More information about the Dev
mailing list