citxx
citxx

Reputation: 2545

URL processing in erlang

Is there a ready-to-use erlang library for processing URLs with following functionality:

More lightweight ones are more preferable.

Upvotes: 2

Views: 1049

Answers (3)

David Wickstrom
David Wickstrom

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

Xiao Jia
Xiao Jia

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

chops
chops

Reputation: 2612

You could look at the uri package by Erlware

Upvotes: 2

Related Questions