VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Download Web Site or File using Winsock API

Luis Cantero  (14 Submissions)   Internet/HTML   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This is a small application that shows how to download a web page (or any file) from a web site using only Winsock API (no OCX, no controls!)! As of today, and as far as I know there are no other examples like this on VBC. It demostrates and explains (advantages and uses of) the GET and POST methods and supports the use of an HTTP Proxy. It downloads Asyncronously so it won't "hang" and you can even set a time-out or cancel the request. One of the many practical uses for it would be: put it on your about box and use it to retrieve a text file on your site that indicates your program's version/update availability. I've commented it and should be easy to understand even for newbees. Please vote for me if you like it ;) if I get enough votes I will post an example on how to transfer files using only Winsock API (Client-Server application).

Rate Download Web Site or File using Winsock API (31(31 Vote))
Download Web Site or File using Winsock API.bas

Download Web Site or File using Winsock API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters