URLDOWNLOADTOFILE not run

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

URLDOWNLOADTOFILE not run

Post 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"
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: URLDOWNLOADTOFILE not run

Post by karinha »

João Santos - São Paulo - Brasil
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: URLDOWNLOADTOFILE not run

Post 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
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: URLDOWNLOADTOFILE not run

Post 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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: URLDOWNLOADTOFILE not run

Post by FranciscoA »

Transport Layer Security
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: URLDOWNLOADTOFILE not run

Post 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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply