function parseURL(URL:String):String;
var
index:integer;
tmp:String;
begin
for index:=length(URL) downto 1 do
if URL[index]<>'/' then
tmp:=URL[Index]+tmp
else break;
result:=tmp;
function CommitUrlCacheEntry;
function CommitUrlCacheEntryA;
function CommitUrlCacheEntryW;
function CreateUrlCacheEntry;
function CreateUrlCacheEntryA;
function CreateUrlCacheEntryW;
function DeleteUrlCacheEntry;
function FindCloseUrlCache;
function FindFirstUrlCacheEntry;
function FindFirstUrlCacheEntryA;
function FindFirstUrlCacheEntryW;
function FindNextUrlCacheEntry;
function FindNextUrlCacheEntryA;
function FindNextUrlCacheEntryW;
function FtpCommand;
function FtpCommandA;
function FtpCommandW;
function FtpCreateDirectory;
function FtpCreateDirectoryA;
function FtpCreateDirectoryW;
function FtpDeleteFile;
function FtpDeleteFileA;
function FtpDeleteFileW;
function FtpFindFirstFile;
function FtpFindFirstFileA;
function FtpFindFirstFileW;
function FtpGetCurrentDirectory;
function FtpGetCurrentDirectoryA;
function FtpGetCurrentDirectoryW;
function FtpGetFile;
function FtpGetFileA;
function FtpGetFileW;
function FtpOpenFile;
function FtpOpenFileA;
function FtpOpenFileW;
function FtpPutFile;
function FtpPutFileA;
function FtpPutFileW;
function FtpRemoveDirectory;
function FtpRemoveDirectoryA;
function FtpRemoveDirectoryW;
function FtpRenameFile;
function FtpRenameFileA;
function FtpRenameFileW;
function FtpSetCurrentDirectory;
function FtpSetCurrentDirectoryA;
function FtpSetCurrentDirectoryW;
function FtpGetFileSize;
function GetUrlCacheEntryInfo;
function GetUrlCacheEntryInfoA;
function GetUrlCacheEntryInfoW;
function GopherCreateLocator;
function GopherCreateLocatorA;
function GopherCreateLocatorW;
function GopherFindFirstFile;
function GopherFindFirstFileA;
function GopherFindFirstFileW;
function GopherGetAttribute;
function GopherGetAttributeA;
function GopherGetAttributeW;
function GopherGetLocatorType;
function GopherGetLocatorTypeA;
function GopherGetLocatorTypeW;
function GopherOpenFile;
function GopherOpenFileA;
function GopherOpenFileW;
function HttpAddRequestHeaders;
function HttpAddRequestHeadersA;
function HttpAddRequestHeadersW;
function HttpOpenRequest;
function HttpOpenRequestA;
function HttpOpenRequestW;
function HttpQueryInfo;
function HttpQueryInfoA;
function HttpQueryInfoW;
function HttpSendRequest;
function HttpSendRequestA;
function HttpSendRequestW;
function InternetCanonicalizeUrl;
function InternetCanonicalizeUrlA;
function InternetCanonicalizeUrlW;
function InternetCloseHandle;
function InternetCombineUrl;
function InternetCombineUrlA;
function InternetCombineUrlW;
function InternetConfirmZoneCrossing
function InternetConnect;
function InternetConnectA;
function InternetConnectW;
function InternetCrackUrl;
function InternetCrackUrlA;
function InternetCrackUrlW;
function InternetCreateUrl;
function InternetCreateUrlA;
function InternetCreateUrlW;
function InternetErrorDlg;
function InternetFindNextFile;
function InternetFindNextFileA;
function InternetFindNextFileW;
function InternetGetCookie;
function InternetGetCookieA;
function InternetGetCookieW;
function InternetGetLastResponseInfo
function InternetGetLastResponseInfo
function InternetGetLastResponseInfo
function InternetOpen;
function InternetOpenA;
function InternetOpenW;
function InternetOpenUrl;
function InternetOpenUrlA;
function InternetOpenUrlW;
function InternetQueryDataAvailable;
function InternetQueryOption;
function InternetQueryOptionA;
function InternetQueryOptionW;
function InternetReadFile;
function InternetSetCookie;
function InternetSetCookieA;
function InternetSetCookieW;
function InternetSetFilePointer;
function InternetSetOption;
function InternetSetOptionA;
function InternetSetOptionW;
function InternetSetOptionEx;
function InternetSetOptionExA;
function InternetSetOptionExW;
function InternetSetStatusCallback;
function InternetTimeFromSystemTime;
function InternetWriteFile;
function ReadUrlCacheEntryStream;
function RetrieveUrlCacheEntryFile;
function RetrieveUrlCacheEntryFileA;
function RetrieveUrlCacheEntryFileW;
function RetrieveUrlCacheEntryStream
function RetrieveUrlCacheEntryStream
function RetrieveUrlCacheEntryStream
function SetUrlCacheEntryInfo;
function SetUrlCacheEntryInfoA;
function SetUrlCacheEntryInfoW;
function UnlockUrlCacheEntryFile;
function UnlockUrlCacheEntryStream;
function CreateUrlCacheGroup;
function DeleteUrlCacheGroup;
function FindFirstUrlCacheEntryEx;
function FindFirstUrlCacheEntryExA;
function FindFirstUrlCacheEntryExW;
function FindNextUrlCacheEntryEx;
function FindNextUrlCacheEntryExA;
function FindNextUrlCacheEntryExW;
function GetUrlCacheEntryInfoEx;
function GetUrlCacheEntryInfoExA;
function GetUrlCacheEntryInfoExW;
function HttpEndRequest;
function HttpEndRequestA;
function HttpEndRequestW;
function InternetAttemptConnect;
function InternetAuthNotifyCallback;
function InternetAutodial;
function InternetAutodialHangup;
function InternetCheckConnection;
function InternetCheckConnectionA;
function InternetCheckConnectionW;
function InternetDial;
function InternetGetConnectedState;
function InternetGoOnline;
function InternetHangUp;
function InternetLockRequestFile;
function InternetReadFileEx;
function InternetReadFileExA;
function InternetReadFileExW;
function InternetSetDialState;
function InternetUnlockRequestFile;
function SetUrlCacheEntryGroup;
function HttpSendRequestEx;
function HttpSendRequestExA;
function HttpSendRequestExW;
function TForm1.getFileNameInUrl(url:String):String;
var
k,pos0:integer;
begin
pos0:=-1; result:='';
for k:=length(url) downTo 1 do
if url[k]='/' then
begin
pos0:=k+1;
break;
end;
if pos0>0 then result:=copy(url,pos0,length(url));
end;