FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour URLDOWNLOADTOFILE not run
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

URLDOWNLOADTOFILE not run

Posted: Mon Oct 07, 2019 11:16 AM
I use it to downloada file but today this function not run ok ( on window Seven)
How I can resolve it ?
the test
Code (fw): Select all Collapse
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"
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: URLDOWNLOADTOFILE not run

Posted: Mon Oct 07, 2019 12:54 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM

Re: URLDOWNLOADTOFILE not run

Posted: Mon Oct 07, 2019 04:44 PM
Hola.
Aqui funciona correctamente. ( Windows 7 Ultimate )
Puedes revisar, en Opciones de Internet, si están habilitados los TLS ?
viewtopic.php?f=6&t=37703&sid=3cb5f50584b22e3c0c729b3083809143#p225509
Saludos.

Code (fw): Select all Collapse
#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.



Fwxh-MySql-TMySql
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: URLDOWNLOADTOFILE not run

Posted: Tue Oct 08, 2019 07:00 AM
I use the same your test
I change only the url (but I check it from IE run ok)





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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM

Re: URLDOWNLOADTOFILE not run

Posted: Tue Oct 08, 2019 02:32 PM

Transport Layer Security

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: URLDOWNLOADTOFILE not run

Posted: Wed Oct 09, 2019 04:53 AM

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

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion