Error downloading URL. Your network connection may be down or your proxy settings improperly configured.
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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& (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.
1 commentaire
Réponses (0)
Voir également
Catégories
En savoir plus sur Downloads dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!