VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Retrieve a web page using the Microsoft Internet Transfer Control

by Anonymous (267 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 24th July 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Retrieve a web page using the Microsoft Internet Transfer Control

Rate Retrieve a web page using the Microsoft Internet Transfer Control




    Dim b() As Byte
    
    'set protocol to HTTP
    Inet1.Protocol = icHTTP
    
    'set URL
    Inet1.URL = "http://www.microsoft.com"
    
    ' Retrieve the HTML data into a byte array.
    b() = Inet1.OpenURL(Inet1.URL, icByteArray)
    
    ' Create a local file from the retrieved data.
    Open "test.htm" For Binary Access Write As #1
    Put #1, , b()
    Close #1

Download this snippet    Add to My Saved Code

Retrieve a web page using the Microsoft Internet Transfer Control Comments

No comments have been posted about Retrieve a web page using the Microsoft Internet Transfer Control. Why not be the first to post a comment about Retrieve a web page using the Microsoft Internet Transfer Control.

Post your comment

Subject:
Message:
0/1000 characters