VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Winsock HTTP download class

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)

Rate Winsock HTTP download class

Upload

Download this snippet    Add to My Saved Code

Winsock HTTP download class Comments

No comments have been posted about Winsock HTTP download class. Why not be the first to post a comment about Winsock HTTP download class.

Post your comment

Subject:
Message:
0/1000 characters