Page 1 of 1

URLDOWNLOADTOFILE not run

Posted: Mon Oct 07, 2019 11:16 am
by Silvio.Falconi
I use it to downloada file but today this function not run ok ( on window Seven)
How I can resolve it ?
the test

Code: Select all


Static Function DescargFichDesdeUrl(cPath)
   local cZipFile := cPath+"storico_"+DtoS(Date())+".zip"
   local cUrl  := URL_LOTTO

   DELETEURLCACHEENTRY( cUrl )

    ? cZipFile

    URLDOWNLOADTOFILE( 0, cUrl, cZipFile )

RETURN NIL

DLL STATIC FUNCTION DELETEURLCACHEENTRY( cUrl AS LPSTR ) AS BOOL;
    PASCAL FROM "DeleteUrlCacheEntryA" LIB "wininet.dll"

DLL FUNCTION URLDOWNLOADTOFILE( pCaller AS LONG, cUrl AS LPSTR, cFileName AS LPSTR, nReserved AS DWORD, nFnCB AS LONG ) AS LONG;
    PASCAL FROM "URLDownloadToFileA" LIB "urlmon.dll"

Re: URLDOWNLOADTOFILE not run

Posted: Mon Oct 07, 2019 12:54 pm
by karinha

Re: URLDOWNLOADTOFILE not run

Posted: Mon Oct 07, 2019 4:44 pm
by FranciscoA
Hola.
Aqui funciona correctamente. ( Windows 7 Ultimate )
Puedes revisar, en Opciones de Internet, si están habilitados los TLS ?
http://fivetechsupport.com/forums/viewt ... 43#p225509
Saludos.

Code: Select all

#DEFINE URL_LOTTO   "https://bitbucket.org/fivetech/fivewin-contributions/downloads/Fivetechv.png"

function Descargar()
local cPath := TrueName("..\fapsoft__foro\DcgaHttps\")
DescargFichDesdeUrl(cPath)
retur nil

Static Function DescargFichDesdeUrl(cPath)
   local cZipFile := cPath+"storico_"+DtoS(Date())+".zip"
   local cUrl  := URL_LOTTO

   DELETEURLCACHEENTRY( cUrl )

    ? cZipFile

    URLDOWNLOADTOFILE( 0, cUrl, cZipFile )

RETURN NIL

Re: URLDOWNLOADTOFILE not run

Posted: Tue Oct 08, 2019 7:00 am
by Silvio.Falconi
I use the same your test
I change only the url (but I check it from IE run ok)


Image


It not download any files

I have this windows
Windows Seven Professional Server Pack 1 64 bit
version 6.1.7601
on HP Z220 CMT WORKSTATION

wich is TLS ?

Re: URLDOWNLOADTOFILE not run

Posted: Tue Oct 08, 2019 2:32 pm
by FranciscoA
Transport Layer Security

Re: URLDOWNLOADTOFILE not run

Posted: Wed Oct 09, 2019 4:53 am
by Silvio.Falconi
this is really strange because last week everything works fine, I have not changed any TLS
if I use IE or Mozilla directly I can directly download the file normally so the tls protocol is working fine
the same function on Windows 10 Professional work fine...
on Windows Seven professional not run