> I wonder what happens to the port when URI parses http URL 
> 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
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to