我想使用wininet将文本文件传输到网络服务器,就像使用将文件发布到服务器的网络表单传输文件一样。根据我收到的答案,我尝试了以下代码:staticTCHARhdrs[]="Content-Type:multipart/form-data\nContent-Length:25";staticTCHARfrmdata[]="file=filename.txt\ncontent";HINTERNEThSession=InternetOpen("MyAgent",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);HINTERNEThConnect=Inter
我无法理解“服务或类服务过程”这两个概念之间的区别。在msdnWinHTTPvs.WinINet页面说:Whenselectingbetweenthetwo,youshoulduseWinINet,unlessyouplantorunwithinaserviceorservice-likeprocessthatrequiresimpersonationandsessionisolation.在WinInetfunction的msdn注释中说:NoteWinINetdoesnotsupportserverimplementations.Inaddition,itshouldnotbeus