URLDOWNLOADTOFILE not run

URLDOWNLOADTOFILE not run

Postby Silvio.Falconi » 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: Select all  Expand view


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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6824
Joined: Thu Oct 18, 2012 7:17 pm

Re: URLDOWNLOADTOFILE not run

Postby karinha » Mon Oct 07, 2019 12:54 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7303
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: URLDOWNLOADTOFILE not run

Postby FranciscoA » Mon Oct 07, 2019 4: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: Select all  Expand view
#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
User avatar
FranciscoA
 
Posts: 2111
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: URLDOWNLOADTOFILE not run

Postby Silvio.Falconi » Tue Oct 08, 2019 7:00 am

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6824
Joined: Thu Oct 18, 2012 7:17 pm

Re: URLDOWNLOADTOFILE not run

Postby FranciscoA » Tue Oct 08, 2019 2:32 pm

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

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2111
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: URLDOWNLOADTOFILE not run

Postby Silvio.Falconi » Wed Oct 09, 2019 4: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6824
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], paquitohm and 34 guests