User:Dzonatas Sol/SNOW-375 WGET
Please feel free to update this page as needed.
This page demonstrates a few methods to access the viewer data via the SNOW-375 patch. This is how client-side scripts can access the data, too. We use wget as a unix shell script example.
Use WGET to access viewer data with SNOW-375
Once you have the viewer compiled and started, go ahead and login.
- Access the "Advanced" menu
- Select "Debug Settings"
- Type in "InterfaceVerifySessionCookie"
- Make sure the settings is "false"
- Close the popup.
Once you do the above, you have disabled the session cookie. The session cookie acted as a basic security means to control connections to only allow a single session between the viewer and the script. We disabled it to make this demonstration easier.
At the shell script, you can now type:
- $ wget -nv -O- http://localhost:50140/ControlGroup
And the response should give you an LLSD output of the available variable control groups:
<llsd><array><string>SavedSettings</string><string>SavedPerAccountSettings</string></array></llsd>
Here's example to get the your root folder UUID:
- $ wget -nv -O- http://localhost:50140/Inventory/Root
<llsd><map><key>ID</key><uuid>88199409-7050-4484-bda7-b9f7f890c379</uuid></map></llsd>
We can see the LLSD format that represents ID=88199409-7050-4484-bda7-b9f7f890c379. Let's use that to get the contents of that inventory folder:
<llsd><map><key>Categories</key><array>...
Most likely you'll see a much longer list if your inventory is a loaded walk-in closet.