[fpc-devel] About the new package manager and networking

Michael Van Canneyt michael at freepascal.org
Sat Nov 4 22:24:22 CET 2006



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.



More information about the fpc-devel mailing list