VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Download Web Site or File using Winsock API

by Luis Cantero (14 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (31 Votes)

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

Upload

Download this snippet    Add to My Saved Code

Download Web Site or File using Winsock API Comments

No comments have been posted about Download Web Site or File using Winsock API. Why not be the first to post a comment about Download Web Site or File using Winsock API.

Post your comment

Subject:
Message:
0/1000 characters