Difference between revisions of "Open Grid Public Beta/Getting Rez Avatar Request Cap"
Jump to navigation
Jump to search
Whump Linden (talk | contribs) |
Whump Linden (talk | contribs) |
||
Line 1: | Line 1: | ||
The OGP protocol mentions getting the rez_avatar/request capability in [[OGP_Teleport#Request_Rez_Avatar_.28Resource_Class.29 | Teleport § 1.3.2]]: ''This capability is normally attained from the Public Region Seed Capability,'' but does not go into detail. | The OGP protocol mentions getting the rez_avatar/request capability in [[OGP_Teleport#Request_Rez_Avatar_.28Resource_Class.29 | 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 | To obtain the rez_avatar/request capability, you make a request to the public_region_seed_cap: | ||
%% public_region_seed_cap -> undef <- &resp | %% public_region_seed_cap -> undef <- &resp | ||
Line 14: | Line 14: | ||
} | } | ||
==In Practice== | |||
You make a GET request to the public_region_seed_cap: | |||
Note that you '''must''' send the <code>Accept: application/llsd+xml</code> header with the request. See [[User:Infinity_Linden/OGP_Serialization_And_Transport| 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== | ==Previous Implementation== | ||
Previously, this was done by posting a request for the rez_avatar/request capability. | Previously, this was done by posting a request for the rez_avatar/request capability. |
Revision as of 16:34, 24 September 2008
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:
%% public_region_seed_cap -> undef <- &resp ;;success &resp = { [ 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.