Open Grid Public Beta/Getting Rez Avatar Request Cap

From Second Life Wiki
Jump to navigation Jump to search

The OGP protocol mentions getting the rez_avatar/request capability in Teleport § 1.3.2: This capability is normally attained from the Public Region Seed Capability, but does not go into detail.

To obtain the rez_avatar/request capability, you make a request to the public_region_seed_cap. In LLIDL, this would be:

%% public_region_seed_cap -> undef <- &resp 

&resp = {
   capabilities: [ rez_avatar/request: uri ]
;; error
&resp = {
    message: string

In Practice

You make a GET request to the public_region_seed_cap:

Note that you must send the Accept: application/llsd+xml header with the request. See OGP Serialization and Transport.

curl -k -H "Accept: application/llsd+xml"
* About to connect() to port 9000 (#0)
*   Trying connected
* Connected to ( port 9000 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host:
> Accept: application/llsd+xml
< HTTP/1.1 200 OK
< Content-Type: application/llsd+xml; charset=utf-8
< Server: Mono-HTTPAPI/1.0
< Date: Wed, 24 Sep 2008 23:13:24 GMT
< Content-Length: 230
< Connection: close
* Closing connection #0

Previous Implementation

Previously, this was done by posting a request for the rez_avatar/request capability.