标签: file-upload error-handling wininet
我使用HttpSendRequestEx -> InternetWriteFile -> HttpEndRequest方法通过WinInet将文件上传到服务器。
HttpSendRequestEx -> InternetWriteFile -> HttpEndRequest
如果发生某些错误(例如401),并且我可以使用相同的请求句柄进行修复/重试,我应该只重复HttpEndRequest还是重复InternetWriteFile -> HttpEndRequest?
HttpEndRequest
InternetWriteFile -> HttpEndRequest