Python has a function urljoin that takes two URLs and concatenates them intelligently. Is there a library that provides a similar function in AS3?
urljoin documentation: http://docs.python.org/library/urlparse.html
And python example:
>>> urljoin('http://www.cwi.nl/doc/Python.html', '../res/jer.png')
'http://www.cwi.nl/res/jer.png'
I want to know if there is an implementation of urljoin function, not the whole urlparse package
Some raw code doing what you want, so you can skip all of the bloated libraries: