This is a UserControl for downloading files via HTTP. It uses Winsock1.1 (wsock32.dll) for functionality, making it compatible with all versions of Windows from Win95 up. The only dependency is the VB6 runtime. You don't need to bother with the Winsock OCX or check the installed version of IE.
This UC is fairly basic. It starts Winsock, connects to a server, requests a file, and handles the download. Server response codes and redirect info. (if any) are also retrieved with the file, and there are functions to write text and binary files to disk after download.
Download httpuc.zip (12kb)
fullnotes: jsware
Related Posts
ActiveX component to retrieve passwordThis is a small ActiveX component that allows you to retrieve the database password of ev
Registered DLL which are not availableWhen a control is registered, it makes an entry in the TypeLib section of the registry in
VB 2005 Power Packs 2.0# A new set of Line and Shape controls# Updated Version of PrintForm component# Updates o
VB6.0 Sample: MSComm Control TechniquesNewVBTerm.exe is a sample that demonstrates various MSComm control techniques that includ
API call to make window "Always on top" attributeSetWindowPos() is not the most obvious API call, but it is the one to use.SetWindowPos( h
Things that VB Programmers 'Must Know'Getting Visual Basic projects to load into the VB IDEAfter registering different versions