Author | Topic: download file from http:// | |
---|---|---|
Pawel Lancucki | download file from http:// on Thu, 01 Feb 2007 16:18:06 +0100 Hi, How can I download file http://www.lanco.pl/lanco.jpg with ASINET and not by FTP ? Pawel Lancucki | |
Adrian Wykrota | Re: download file from http:// on Thu, 01 Feb 2007 17:24:48 +0100 LoadFromUrl() Z powaaniem/Best regards Adrian Wykrota www.advantec-software.pl Uytkownik "Pawel Lancucki" <pawel.lancucki@lanco.pl> napisa w wiadomoci news:4f4afc6e$6ac24b73$82404@news.alaska-software.com... > Hi, > > How can I download file http://www.lanco.pl/lanco.jpg with ASINET > and not by FTP ? > > Pawel Lancucki > | |
Pawel Lancucki | Re: download file from http:// on Fri, 02 Feb 2007 19:28:44 +0100 LoadFromUrl( 'http://www.lanco.pl/lanco.jpg') ? It's not .html ! Sample please. Pawel Uytkownik "Adrian Wykrota" <a.wykrota@asitc.pl> napisa w wiadomoci news:2a7a215c$38d82f66$827c2@news.alaska-software.com... > LoadFromUrl() > > -- > > Z powaaniem/Best regards > Adrian Wykrota > www.advantec-software.pl > > Uytkownik "Pawel Lancucki" <pawel.lancucki@lanco.pl> napisa w wiadomoci > news:4f4afc6e$6ac24b73$82404@news.alaska-software.com... >> Hi, >> >> How can I download file http://www.lanco.pl/lanco.jpg with ASINET >> and not by FTP ? >> >> Pawel Lancucki >> > > | |
Adrian Wykrota | Re: download file from http:// on Sun, 04 Feb 2007 14:55:53 +0100 NO to co, e nie html, ta funkcja ciga wszystko, take zipy i pliki tekstowe. Z powaaniem/Best regards Adrian Wykrota www.advantec-software.pl Uytkownik "Pawel Lancucki" <pawel.lancucki@lanco.pl> napisa w wiadomoci news:276d9c88$6554a0dc$a7886@news.alaska-software.com... > > LoadFromUrl( 'http://www.lanco.pl/lanco.jpg') ? > > It's not .html ! > > Sample please. > > Pawel > > Uytkownik "Adrian Wykrota" <a.wykrota@asitc.pl> napisa w wiadomoci > news:2a7a215c$38d82f66$827c2@news.alaska-software.com... >> LoadFromUrl() >> >> -- >> >> Z powaaniem/Best regards >> Adrian Wykrota >> www.advantec-software.pl >> >> Uytkownik "Pawel Lancucki" <pawel.lancucki@lanco.pl> napisa w >> wiadomoci news:4f4afc6e$6ac24b73$82404@news.alaska-software.com... >>> Hi, >>> >>> How can I download file http://www.lanco.pl/lanco.jpg with ASINET >>> and not by FTP ? >>> >>> Pawel Lancucki >>> >> >> > > | |
Pawel Lancucki | Re: download file from http:// on Mon, 05 Feb 2007 09:09:15 +0100 Syntax LoadFromUrl( <cURL> , ; [<nPortNumber>], ; [<nProtocol>] , ; [<cProxyUrl>] , ; [<acByPass> ] , ; [<cMethod>] , ; [<cPostString>] ) --> cWebContent | NIL Return The function returns the contents of an URL as character string. Zasugerowaem si e wraca string. Dziki. Podaj mailem swoje aktualne namiary . Pawe Uytkownik "Adrian Wykrota" <a.wykrota@asitc.pl> napisa w wiadomoci news:3a128413$68a2e096$abfba@news.alaska-software.com... > NO to co, e nie html, ta funkcja ciga wszystko, take zipy i pliki > tekstowe. > > -- > > Z powaaniem/Best regards > Adrian Wykrota > www.advantec-software.pl > > Uytkownik "Pawel Lancucki" <pawel.lancucki@lanco.pl> napisa w wiadomoci > news:276d9c88$6554a0dc$a7886@news.alaska-software.com... >> >> LoadFromUrl( 'http://www.lanco.pl/lanco.jpg') ? >> >> It's not .html ! >> >> Sample please. >> >> Pawel >> >> Uytkownik "Adrian Wykrota" <a.wykrota@asitc.pl> napisa w wiadomoci >> news:2a7a215c$38d82f66$827c2@news.alaska-software.com... >>> LoadFromUrl() >>> >>> -- >>> >>> Z powaaniem/Best regards >>> Adrian Wykrota >>> www.advantec-software.pl >>> >>> Uytkownik "Pawel Lancucki" <pawel.lancucki@lanco.pl> napisa w >>> wiadomoci news:4f4afc6e$6ac24b73$82404@news.alaska-software.com... >>>> Hi, >>>> >>>> How can I download file http://www.lanco.pl/lanco.jpg with >>>> ASINET and not by FTP ? >>>> >>>> Pawel Lancucki >>>> >>> >>> >> >> > > | |
Hubert Brandel | Re: download file from http:// on Mon, 05 Feb 2007 00:56:52 +0100 Pawel Lancucki schrieb: > LoadFromUrl( 'http://www.lanco.pl/lanco.jpg') ? > It's not .html ! > Sample please. > Pawel Hi, cDIR := "c:\yourPath\" cURL := "http://www.lanco.pl/" cDatei := "lanco.jpg" cFile := LoadFromUrl(cURL+cDatei) if len(cFile) > 0 str2disk(cDIR+cDatei,cFile) endif *--------------------------------------------------------------------------------------------- function Str2Disk(cFile,cTxt) memowrit() adds chr(26), don't use it local nResult, nHandle, nByte nResult := 0 nHandle := FCreate(cFile) if nHandle = -1 nResult := FError() else nByte := FWrite( nHandle, cTxt ) if len(cTxt) # nByte nResult := FError() endif endif FClose(nHandle) return nResult I normaly do use this with ZIP Files (WEB-Install), but it will work with all Files ... Bye Hubert ---------------- Ich empfehle: www.xbaseforum.de (in deutsch) Homepage: German - www.familie-brandel.de/index.htm English - www.familie-brandel.de/index_e.htm | |
Pawel Lancucki | Re: download file from http:// on Mon, 05 Feb 2007 09:12:08 +0100 I was blind. Now I see. Hubert, thanks for sample. Pawel. Uzytkownik "Hubert Brandel" <Hubert.Brandel@gmx.de> napisal w wiadomosci news:18c5ae56$1a4fd28c$acd1d@news.alaska-software.com... > Pawel Lancucki schrieb: >> LoadFromUrl( 'http://www.lanco.pl/lanco.jpg') ? >> It's not .html ! >> Sample please. >> Pawel > > Hi, > > cDIR := "c:\yourPath\" > cURL := "http://www.lanco.pl/" > cDatei := "lanco.jpg" > cFile := LoadFromUrl(cURL+cDatei) > if len(cFile) > 0 > str2disk(cDIR+cDatei,cFile) > endif > *--------------------------------------------------------------------------------------------- > function Str2Disk(cFile,cTxt) memowrit() adds chr(26), don't use it > local nResult, nHandle, nByte > nResult := 0 > nHandle := FCreate(cFile) > if nHandle = -1 > nResult := FError() > else > nByte := FWrite( nHandle, cTxt ) > if len(cTxt) # nByte > nResult := FError() > endif > endif > FClose(nHandle) > return nResult > > I normaly do use this with ZIP Files (WEB-Install), but > it will work with all Files ... > > Bye > Hubert > > ---------------- > > Ich empfehle: www.xbaseforum.de (in deutsch) > > Homepage: > > German - www.familie-brandel.de/index.htm > English - www.familie-brandel.de/index_e.htm |