VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Winsock HTTP download class

RegX  (15 Submissions)   Internet/HTML   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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 (15(15 Vote))
Winsock HTTP download class.bas

Winsock HTTP download class Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters