GETURLTOFILE error on windows 7 (WINOLE/1007)

Post Reply
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

GETURLTOFILE error on windows 7 (WINOLE/1007)

Post by Silvio.Falconi »

On Windows 10

oHtp = CREATEOBJECT( "Msxml2.XMLHTTP.6.0" )

run ok on windows seven I have this error

Code: Select all | Expand

  Error description: (DOS Error -2147352567) WINOLE/1007  Download della risorsa specificata non riuscito.
 (0x800C0008): msxml6.dll


is there anothe command on Windows seven ?
this is the function

FUNCTION GETURLTOFILE( cUrl, cFile, cUsr, cPsw )
LOCAL lOk := .F.

LOCAL oHtp, oStr, ex

DEFAULT cFile := CFILENAME( STRTRAN( cUrl, "/", "\" ) )

//TRY
oHtp = CREATEOBJECT( "Msxml2.XMLHTTP.6.0" )

oHtp:Open( "POST", cUrl, .F., cUsr, cPsw )

oHtp:Send()


IF oHtp:Status != 200 THEN BREAK
MemoWrit(cFile,oHtp:ResponseBody)
//oStr = CREATEOBJECT( "ADODB.Stream" )
//oStr:Open()
//oStr:Type = 1
//oStr:Write( oHtp:ResponseBody )
//oStr:SaveToFile( cFile, 2 )
//oStr:Close()

lOk = .T.
//CATCH ex
// ? ex:message
//END

RETURN lOk
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
Antonio Linares
Site Admin
Posts: 42512
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: GETURLTOFILE error on windows 7 (WINOLE/1007)

Post by Antonio Linares »

Silvio,

You may try FWH function WebImage( cURL )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7133
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: GETURLTOFILE error on windows 7 (WINOLE/1007)

Post by Silvio.Falconi »

I must download a file from a extern server
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
Post Reply