Jump to content

Persistent URL for HTTP servers


Gayngel
 Share

You are about to reply to a thread that has been inactive for 1693 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am creating a visitor log that posts names of avatars to an external server script by http however it  fails after a region restart because the url is released and the url has to be harcoded into the server.

 

How can I keep a persistent url to keep communicating with inworld objects?

 

I see a url can be requested again with CHANGED_REGION_START but doesn't that create a unique url for every request?

 

Link to comment
Share on other sites

To keep it all in-world, I used to use llEmail to update relays with the new ephemeral server URLs.

Then I switched to using the Experience Persistent Store for those URLs.

Then I realized I could use Experience KVPs for all relayed communications, faster and simpler than http (although polled instead of asynch). Of course, this requires that all the communicating scripts be on Experience-enabled land, so I still had http to get data from elsewhere to the relays (which are on land enabling my Experience).

Link to comment
Share on other sites

  • 8 months later...

You can run your own web server at home using a Raspberry Pi computer with web server software, very easy to do, and will cost around $30.

then a very simple PHP script to store and update the SL URL, something like:

<?php
$myfile = fopen("seattest.txt", "w") or die("Unable to open file!");
$txt = $_POST['url'];
fwrite($myfile, $txt);
fclose($myfile);
?>

 

that writes the URL to a notecard, and can be read by any script that needs the in world SL URL

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1693 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...