MATLAB Answers

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

51 views (last 30 days)
Abhinav
Abhinav on 2 Jul 2019
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 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.

Tags

Products


Release

R2014a