[erlang-questions] URL parsing and construction
Nicholas Gerakines
nick@REDACTED
Tue Apr 8 05:52:40 CEST 2008
I'm surprised that no one has written a yecc parser for this. Any volunteers? I'd be *really* interested in one.
# Nick Gerakines
----- Original Message ----
From: Michael T. Richter <ttmrichter@REDACTED>
To: erlang-questions <erlang-questions@REDACTED>
Sent: Monday, April 7, 2008 8:35:07 PM
Subject: Re: [erlang-questions] URL parsing and construction
On Mon, 2008-04-07 at 13:30 +0100, Dale Harvey wrote:
yaws provides functions for parsing urls
I looked at it and it gave me the clues for writing my own. The yaws parser, however, can't cope with URLs of the form "<protocol>://<user>:<password>@<host>:<port>/<path>". Specifically it doesn't support user/password combinations.
The code I wrote based on their parser handles it, but it's a bit obscenely large. I'm not sure how to make it smaller, but it works well enough for my purposes at this time.
--
Michael T. Richter <ttmrichter@REDACTED> (GoogleTalk: ttmrichter@REDACTED)
The only reason some people get lost in thought is because it's unfamiliar territory. (Paul Fix)
-----Inline Attachment Follows-----
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list