Results 1 to 11 of 11

file download log in

Threaded View

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    LA
    MS-Off Ver
    Excel 2011
    Posts
    8

    file download log in

    I am using the following code to get a file:

    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
    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?
    Last edited by arlu1201; 08-01-2012 at 10:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1