1. Main business processes:
Read the names of the pictures in sequence from the txt file, and save the pictures on the web page to the local folder through the URL
2. Code:
3. 报错:Server returned HTTP response code: 403 for URL
solve:
URL url = new URL(requestUrl);
httpUrlConn = (HttpURLConnection) url.openConnection();
httpUrlConn.setRequestProperty("UserAgent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");