On Sat, 4 Nov 2006, Ales Katona wrote:
> Wanted to ask, how should I process the URL? > > Should I also understand ":" as separator for port eg: > http://www.shit.com:3030 ? > > Shouldn't this be parsed by some common function? Eg: > procedure ParseURL(var Host, URI: string; var Port: string); This function exists and is used. See uriparser.pp (packages/base/netdb) It's already used in the pkgdownload, pkgsynapse files. (ParseUri function) > This way we can save the hassle for all the backends and ensure same > things will get understood. Yep. As you can see, all has been foreseen. This is the result of many years of work-in-progress ;-) I have not yet thought about proxy support, I need to think about that. Michael. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel