A while back, I played around with curl to send e-mails:
VBA - Send Email Using Windows 10 Curl
In a recent discussion regarding automating e-mails in Access someone brought to my attention that Windows 10 has curl built into it, as of build 1803, which allows sending e-mails, amongst many other things. This got me curious if it could be a viable replace for say CDO Mail. As such, I did some research, development and testing and ended up with the following function:
and was surprised at how relatively easy it was to use.
I have previous posted a few ways to download content from the web, such as:
Download a File From The Internet
Today, I thought I’d expand a little on a post I made in 2013: to adapt the routine to download a copy of the file. This was actually brought upon by someone needing assistance in Experts-Exchange. The file in question makes no real difference, images, text files, … So this approach is very versatile and easy to use. The General Idea Based on the original sample, we can read the file using XMLHTTP and then we can simply use ADODB stream to save what we read back to a file.
but decided to play around with curl on this since I knew that this was supposed to be another one of its strengths.
Continue reading →