Reputation: 2545
Is there a ready-to-use erlang library for processing URLs with following functionality:
.
and ..
path elementsMore lightweight ones are more preferable.
Upvotes: 2
Views: 1049
Reputation: 5188
Mochiweb includes an URL parser in the module mochiweb_util.
Minimal code example:
{"http", "host:port", "/foo", "", "bar?baz"} =
mochiweb_util:urlsplit("http://host:port/foo#bar?baz").
Upvotes: 2
Reputation: 4259
Check this: https://github.com/stfairy/eurl/blob/master/eurl.erl
I just wrote it for this question. Will add tests later on.
btw, I don't quite understand what is path concatenation :-)
Upvotes: 1