Rewritten the creation of the url, and the processing of it.
Added the typedata, when a connection is created. This was not set yet, which caused hangups.