18,356
社区成员
发帖
与我相关
我的任务
分享
"GET 要下载的文件 HTTP/1.1\r\n" \
"Accept: */*\r\n" \
"User-Agent: Mozilla/4.0 (compatible; AAAA)\r\n" \
"Host: %s\r\n" \
"Pragma: no-cache\r\n" \
"Cache-Control: no-cache\r\n" \
"Connection: Keep-Alive\r\n" \
BOOL DownLoadFile(TCHAR* szURL)
{
if(URLDownloadToFile(NULL,szURL,0,NULL) == S_OK)
{
return TRUE;
}
return FALSE;
}