Downloaded file using webclient.DownloadFileAsync has 0KB

前端 未结 4 1970
情话喂你
情话喂你 2020-12-11 14:43

I\'m trying to download zend-framework (from http://framework.zend.com/releases/ZendFramework-1.11.11/ZendFramework-1.11.11.zip) simply using WebClient

strin         


        
4条回答
  •  难免孤独
    2020-12-11 15:05

    Ok, I finnaly found the answer! Before downloading the file, I was checking its size by sending HttpWebRequest. The problem was, that i didn't Close() the response.

    Thanks for the answers, they were nice clues.

提交回复
热议问题