Difference between revisions of "UpdateScriptAgent"

From Second Life Wiki
Jump to navigation Jump to search
(Followed through example of uploading script for server-side compilation)
(forgot formatting)
Line 26: Line 26:


Response to upload:
Response to upload:
<pre>
<?xml version="1.0" ?>
<?xml version="1.0" ?>
<llsd>
<llsd>
Line 39: Line 40:
</map>
</map>
</llsd>
</llsd>
</pre>

Revision as of 11:32, 16 September 2008

POST:

<llsd>
	<map>
		<key>item_id</key>
		<uuid>49b48bf9-2b40-d3fa-aea7-c856bf8b3dfb</uuid>
		<key>target</key>
		<string>mono</string>
	</map>
</llsd>

Response:

<llsd>
	<map>
		<key>state</key>
		<string>upload</string>
		<key>uploader</key>
		<string>https://sim2777.agni.lindenlab.com:12043/cap/c184fe54-9094-353a-4b3c-44f902c61fca</string>
	</map>
</llsd>

POSTed script text to uploader and it worked

Response to upload:

<?xml version="1.0" ?>
<llsd>
	<map>
		<key>compiled</key>
		<boolean>true</boolean>

		<key>state</key>
		<string>complete</string>

		<key>new_asset</key>
		<uuid>8cec7e2f-a151-e055-61d2-2d5c5146549b</uuid>
	</map>
</llsd>