![]() |
Re: wie bekomme ich das richtige Protocol raus bei einer URL
Delphi-Quellcode:
implementation
uses {$IFDEF SERV_DEFAULT_PORT} ActiveX, ShlObj, //Windows, <-- von hier ... {$ENDIF SERV_DEFAULT_PORT} Windows, // <-- nach hier :-) WinInet, SysUtils, Classes; |
Re: wie bekomme ich das richtige Protocol raus bei einer URL
Indy enthält in der Unit IdURI eine Klasse TIdURI, mit der sich eine URL in ihre Teile zerlegen läßt. Nach der Erzeugung einer Instanz steht das Netzwerkprotokoll, also z.B. 'http' oder 'ftp', in der Property 'Protocol'.
|
Re: wie bekomme ich das richtige Protocol raus bei einer URL
Zitat:
|
Re: wie bekomme ich das richtige Protocol raus bei einer URL
Danke werde ich mal versuchen. :)
Ok sehe ich ein das nicht gerade die Feine Norwegische Art ist mit denn 460 Zeilen Code Sorry :| Danke noch mal an alle |
Re: wie bekomme ich das richtige Protocol raus bei einer URL
Warum verwendet Ihr AnsiContainsStr, das dummerweise ein ftp auch mittendrin findet, wo es doch sowas wie StartsText() gibt?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:28 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz