VC++/MFC访问 https 网页,从网页下载图片
从网上找了好多资料,所有的API函数或者是MFC封装的成员函数,我都没实现了.
一定是我没了解清楚,有没有这方面比较老道的,帮我解决一下~
[解决办法]
这个用C#来做吧。
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
WebClient web_client = new WebClient();
string image_url = "http://img.my.csdn.net/uploads/201303/21/1363842729_1854.png";
string save_path = @"D:\morewindows.png";
web_client.DownloadFile(image_url, save_path);
}
}
}