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

10 views (last 30 days)
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.

Answers (0)

Categories

Find more on Downloads in Help Center and File Exchange

Tags

Products


Release

R2014a

Community Treasure Hunt

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

Start Hunting!