Active Forums => Programs => Topic started by: SpriggsySpriggs on March 10, 2021, 12:39:09 pm
Title: For those who need to do basic HTTP/HTTPS downloading (Windows Only)
Post by: SpriggsySpriggs on March 10, 2021, 12:39:09 pm
Below is a function I made up that tries to take a dynamic approach to the very complex WinInet API functions. It is set up to dissect the URL you pass it so it can be sent to the functions correctly as well as call the functions with the right flags based on the security of the URL (HTTP or HTTPS). This just simply downloads the URL and stores it in the string. You could use this for downloading things other than text files or HTML files but depending on the size, you shouldn't. Here is the code:
Title: Re: For those who need to do basic HTTP/HTTPS downloading (Windows Only)
Post by: SpriggsySpriggs on March 10, 2021, 01:01:24 pm
I've edited the original post because I realize I forgot to include the variable for what types to accept. It probably isn't needed but it's for just-in-case
Title: Re: For those who need to do basic HTTP/HTTPS downloading (Windows Only)
Post by: NOVARSEG on March 12, 2021, 02:57:42 am