Open Grid Public Beta/Getting Rez Avatar Request Cap

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 

;;success 
&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" http://75.101.131.107:9000
* About to connect() to 75.101.131.107 port 9000 (#0)
*   Trying 75.101.131.107... connected
* Connected to 75.101.131.107 (75.101.131.107) 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: 75.101.131.107:9000
> 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
<llsd>
 <map>
  <key>connect</key>
  <boolean>1</boolean>
  <key>capabilities</key>
  <map>
    <key>rez_avatar/request</key>
    <string>http://75.101.131.107:9000/agent/de537165-804a-44f3-a6dc-bb27642be9af/rez_avatar/request</string>
  </map>
 </map>
</llsd>

Previous Implementation

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