Report an ad!

Loooooooong Url

This is where all the latest updates to RuneScript will be posted.
Guest Posting Enabled.

Moderator: RuneScript Staff

Kyle
RuneScript Developer
 
Posts: 153
Joined: Nov 24th '06, 12:00am
Location: California

Loooooooong Url

New postby Kyle on Sep 5th '09, 11:16pm

Hey Everyone!

Have you ever seen a shortened URL and wondered where it went? But then, a sudden fear overcame you...could it be a Rickroll? Porn? Or a virus!?! The nagging curiosity of those links would continue to gnaw upon your insides, and the temptation was unbearable. Fear Not! This problem is no more thanks to RuneScript's new URL Expansion command :D

By providing a shortened URL via "!longurl," RuneScript will provide you with the forwarding website's URL, Title, and Mime Type.

(11:49:56) <+Kyle> @longurl http://rly.cc/jN_tv
(11:49:57) <~RuneScript> *** [ LONGURL ]: <http://rly.cc/jN_tv> -> <http://www.google.com/> (Title Google | Content text/html)
(11:55:57) <+Kyle> @longurl http://rly.cc/qcOUD
(11:55:59) <~RuneScript> *** [ LONGURL ]: <http://rly.cc/qcOUD> -> <http://b.rscript.org/download/file.php?avatar=252.gif> (Content image/gif)


This command should work for any redirection URL, but please report anything which seems to not work. Also, it will only work with valid URLs on both ends. In other words, the ShortURL you provide must redirect to a real website (Not something like dsfasdfdsa.com).

(12:02:23) <+Kyle> [zs] @rly.cc dfadsfsdgdf.com
(12:02:24) <~[ZS]RuneScript> *** [ SHORTURL ]: Success! "dfadsfsdgdf.com" -> http://rly.cc/mzl1g
(12:02:36) <+Kyle> [zs] @longurl http://rly.cc/mzl1g
(12:02:37) <~[ZS]RuneScript> *** [ ERROR ]: Could not expand URL. Please check that you have submitted a valid URL

And yes, I know we're a month late :oops:
Image
Image

User avatar
Looce
Forum Pimp
 
Posts: 787
Joined: Dec 2nd '05, 6:15pm
Location: irc.rscript.org

New postby Looce on Sep 6th '09, 6:41pm

Thanks. This will be sorely needed, especially with the proliferation of tinyurl / bit.ly links etc. :D

Also, long URL is loooooooooooooooooooooooooooooooooooooooooooooooooooooooong.
[17:37:43] <Ravinasian> this calls for a toast
[17:37:55] * TheSith smashes toast in Ravinasian's face.

________________________________

[16:31:03] <Dadisman> What would you do for a Klondike bar?
[16:31:30] <crovax> I'd have anal sex with Cruiser for one of these Klondike bars.


Return to News and Announcements

Who is online

Users browsing this forum: No registered users and 1 guest