I am using the following code to get a file:
It works really fast but the problem is that I have to log in to that website so that I can download the file, is there a way to do so?![]()
Dim FileData() As Byte Set WHTTP = CreateObject("WinHTTP.WinHTTPrequest.5.1") WHTTP.Open "GET", myurl, False WHTTP.send FileData = WHTTP.responseBody Set WHTTP = Nothing FileNum = FreeFile Open "D:\bla.txt" For Binary Access Write As #FileNum Put #FileNum, 1, FileData Close #FileNum
Bookmarks