Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Persistent URL using Snurl.com APIs

Opensource Obscure
Hide UI
Join date: 5 Jun 2008
Posts: 115
07-20-2009 14:56
I'm using snurl.com/snipurl.com/sn.ip APIs to give a persistent, short URL to my scripts.

Here's an example:
https://wiki.secondlife.com/wiki/User:Opensource_Obscure/http/snurl-sample

I'm not a real coder .. it appears to work but for sure it can be improved, and you're welcome to do!


note:
it's sNurl, not sLurl
:)
Opensource Obscure
Hide UI
Join date: 5 Jun 2008
Posts: 115
07-22-2009 09:25
I suspect that this isn't working anymore or that something changed.
My scripts stopped working - I mean that they don't get any more data from x-query-string when using llGetHTTPHeader. That goes through Snipurl APIs, and they may have decided to stop it.
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
07-22-2009 18:27
The unfortunate fact seems to be that these url shortening services tend to be short-lived. I have a system I'm using with tr.im.. but I'm also at the mercy of tr.im's downtimes. The more popular a url shortening service becomes, the more of it's finite pool of short urls begins to fill up. The more people using the service, the more chances for downtimes and flakiness.

I don't know what to say regarding your script, or your application of using snurl.. but I personally found snurl a little unpredictable at times, and switched to tr.im. Of course, how long til tr.im fails.. these url services are loved by "new media" like twitter.. so they fill up and falter faster than they did back in the good old days.

You might consider registering a domain for yourself, and building a php script to serve the data you need.

On a somewhat related note. however, I did finally figure out something cool to do with the "I could move someday" slurl problem. Luckily, I have a webpage for my business.

http://slurl.eclectic-randomness.com

it's just a subdomain ("slurl";), pointed at a directory with an ultra-minimalist piece of html.. that forwards the clicker to the "full slurl" for my current location. I can go in and alter the link as needed.

From: someone

< !-- start of frame-start.shtml -->
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns="http://www.w3.org/1999/xhtml">
< head>
< title>Eclectic Randomness Main Store</title>
< base href="http://www.eclectic-randomness.com/" />
< link rel="Shortcut Icon" href="graphics/icons/favicon.ico" />
< meta http-equiv = "content-type" content = "text/html; charset = ISO-8859-1" />
< meta http-equiv = "Refresh" content ="0; url = http://slurl.com/secondlife/Healy/118/144/250/?img=http%3A//www.zebragrrl.com/graphics/headers/er-slurl-banner.png&title=Eclectic%20Randomness" />
< /head>
< body>
< div style="
text-align: center;
font-weight: bold;
font-size: 8px;
font-family: sans-serif;
padding:64px;
">

Loading...
< /div>
< /body>
< /html>


(obviously, you gotta remove the spaces after the < 's)
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura