Urgent Help: URI parser
Simon Marlow
simonmar@microsoft.com
Thu, 19 Dec 2002 14:00:09 -0000
> I wonder what happens to the port when URI parses http URL=20
> string. Is it
> possible to check for ":" and use the stated port instead of port 80?
> Anyone has experience doing it before?
> Thanks in advance.
> Cheers,
> Gek
The Network.URI library will extract the "host:port":
> authority (fromJust (parseURI "http://www.haskell.org:80/"))
"www.haskell.org:80"
You have to split this string into the separate host and port parts
yourself.
Cheers,
Simon