VB 6:- Retrieve Dir contents using Internet Transfer Control and HTTP 
Author Message
 VB 6:- Retrieve Dir contents using Internet Transfer Control and HTTP

Hi all.

I can use the OpenURL Method of the above control successfully. How would I
retrieve the contents of a directory on a particular web server using HTTP.

The directory contains subdirectories containing html and asp pages.
I first thought about using the FileSystemObject but that would only work on
local and networked drives wouldn't it?

I imagine code such as the following. But I need to fill in the gaps!!
*************************************
Dim lastrecord as Boolean
Dim b( ) As Byte

Do While lastrecord = False
    Inet1.URL = filename     'How would filename be retrieved using HTTP?
    b( ) = Inet1.OpenURL(Inet1.URL, icByteArray)
    Open "C:\Temp\tests.html" For Binary Access Write As #1
        Put #1, , b( )
    Close #1
    'Do something here that navigates to the next file
    'Also have a check for last file. If so set lastrecord to true
Loop
*************************************

Can anyone please help?

Thanks

Simpler



Sun, 09 May 2004 02:17:50 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Internet Transfer Control: Retrieving HTTP status line

2. File upload using Internet Transfer Control and HTTP PUT

3. HTTP but no FTP using Internet transfer control

4. File upload using Internet Transfer Control and HTTP PUT

5. HTTP file upload using Internet transfer control

6. Using the PUT method with HTTP and the Internet transfer controll

7. Internet Transfer Control, FTP, DIR problem

8. Internet Transfer Control (Inet) & FTP DIR

9. Internet Transfer Control and HTTP Requests

10. Internet Transfer Control & HTTP SSL

11. Internet Transfer Control and HTTP?

12. How to upload a file by Internet Transfer Control in HTTP protocol

 

 
Powered by phpBB® Forum Software