my urlwrite does not work for a basic ask

url_c='http://www.rad.cvm.gov.br/ENETCONSULTA/frmDownloadDocumento.aspx?CodigoInstituicao=1&NumeroSequencialDocumento=67694'
urlwrite(url_c,'c_file.zip')

 采纳的回答

The server does an http 302 redirect to https, but urlwrite() does not process redirects.
That said, if I change to https in the filename then urlwrite() fails. If I switch to websave() I get a message about certificate verification failed. My browser can download it, so it could be a difference in root certificates that are recognized.

2 个评论

Thank you, Walter Roberson. The same for me. My browser can download it but urlwrite() fails. Would there be a dos or windows command that i could run to escape this problem?
Solved the problem, in terms, with web(url_c,'-browser'), that download the file, not in the desired directory, but it is fine. Thank you.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Downloads 的更多信息

产品

版本

R2014a

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by