Hi NG,
I used the Internet Data Transfer Library of Dev Ashish found at
http://www.mvps.org/access/modules/mdl0037.htm to transfer text files from
a server with HTTPS in my old Ms Access 97 application.
'----snip----
Sub TestHTTP()
On Error GoTo ErrHandler
Dim objHTTP As InetTransferLib .HTTP
Const conTARGET = "https://ip.of.my.server/PathToMyFile/MyFile.csv"
Set objHTTP = New InetTransferLib .HTTP
With objHTTP
.HttpURL = conTARGET
.DestinationFil e = "c:\MyFile. csv"
If .FileExists Then .OverwriteTarge t = True
.ConnectToHTTPH ost
.WriteHTTPDataT oFile
End With
ExitHere:
On Error Resume Next
Set objHTTP = Nothing
Call SysCmd(acSysCmd RemoveMeter)
Exit Sub
ErrHandler:
MsgBox Err.Number & vbCrLf & Err.Description , vbCritical + vbOKOnly,
Err.Source
Resume ExitHere
End Sub
This code was running fine for months - I did not changed anything but for
a couple of days I receive an error 6 - overflow message when
..WriteHTTPData ToFile is in progress.
The file size of MyFile.csv is about 100-250kb...
I tried to use the microsoft internet transfer control activex v6.0 but
with no success... ;-(
Any help or sample code is welcome
Regards
Hanspeter
I used the Internet Data Transfer Library of Dev Ashish found at
http://www.mvps.org/access/modules/mdl0037.htm to transfer text files from
a server with HTTPS in my old Ms Access 97 application.
'----snip----
Sub TestHTTP()
On Error GoTo ErrHandler
Dim objHTTP As InetTransferLib .HTTP
Const conTARGET = "https://ip.of.my.server/PathToMyFile/MyFile.csv"
Set objHTTP = New InetTransferLib .HTTP
With objHTTP
.HttpURL = conTARGET
.DestinationFil e = "c:\MyFile. csv"
If .FileExists Then .OverwriteTarge t = True
.ConnectToHTTPH ost
.WriteHTTPDataT oFile
End With
ExitHere:
On Error Resume Next
Set objHTTP = Nothing
Call SysCmd(acSysCmd RemoveMeter)
Exit Sub
ErrHandler:
MsgBox Err.Number & vbCrLf & Err.Description , vbCritical + vbOKOnly,
Err.Source
Resume ExitHere
End Sub
This code was running fine for months - I did not changed anything but for
a couple of days I receive an error 6 - overflow message when
..WriteHTTPData ToFile is in progress.
The file size of MyFile.csv is about 100-250kb...
I tried to use the microsoft internet transfer control activex v6.0 but
with no success... ;-(
Any help or sample code is welcome
Regards
Hanspeter
Comment