Error downloading URL. Your network connection may be down or your proxy settings improperly configured.

4 次查看(过去 30 天)
Hello, I am using the function urlwrite to downlaod a lot of html pages in a for loop. As an example, following is the url of one of the webpages:
And I use the following code to download the webpage:
url=https://waterdata.usgs.gov/nwis/inventory/?site_no=03347000&agency_cd=USGS&
openfile=urlwrite(url,filename);
I get the following error:
Error using urlreadwrite (line 97)
Error downloading URL. Your network connection may be down or your proxy settings improperly configured.
Error in urlwrite (line 38)
[f,status] = urlreadwrite(mfilename,catchErrors,url,filename,varargin{:});
I have tried the solution provided on the link: https://www.mathworks.com/matlabcentral/answers/92506-how-can-i-configure-matlab-to-allow-access-to-self-signed-https-servers. Basically, I added the certificate for the webpage https://waterdata.usgs.gov/nwis/inventory/?site_no=03347000&agency_cd=USGS&amp (though, not sure if this what I was supposed to do).
Please let me know how to fix this probelm.
Note: I was able to use this code a year ago without this error.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

标签

产品


版本

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by