by RegX (15 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (15 Votes)
Updated - now includes file download example
This is a simple HTTP download class using WinSock. This class extracts the server name from the URL so all you say is wsc.geturl txturl.
shows progress and parses the header object returned by the server and throws an error event on a bad response. The full header is made available. Currently this just downloads to memory using the cAppendString class since I just needed this for HTML parsing but it could easily be modified to save to a file.
Enjoy and please Vote. Or comment or negativaly comment ............or don't.
Assumes
Requires:
ref to Microsoft Scripting Runtime.
ref to MSWinsockLib.Winsock (Mswinsck.ocx)
Upload