Changeset 852 for java/HTTPFileDownloader
- Timestamp:
- May 3, 2013, 2:25:21 PM (12 years ago)
- Location:
- java/HTTPFileDownloader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/HTTPFileDownloader/.classpath
r741 r852 3 3 <classpathentry kind="src" path="src"/> 4 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> 5 <classpathentry combineaccessrules="false" kind="src" path="/ProxySettings"/> 5 6 <classpathentry kind="output" path="bin"/> 6 7 </classpath> -
java/HTTPFileDownloader/src/net/oni2/httpfiledownloader/FileDownloader.java
r786 r852 9 9 import java.net.URLConnection; 10 10 import java.util.HashSet; 11 12 import net.oni2.ProxySettings; 11 13 12 14 /** … … 147 149 String strEtag = null; 148 150 RandomAccessFile outFile = null; 151 149 152 try { 150 153 outFile = new RandomAccessFile(target, "rw"); … … 174 177 BufferedInputStream input = null; 175 178 try { 176 URLConnection connection = url.openConnection(); 177 connection.setRequestProperty("Cache-Control", "no-cache"); 179 URLConnection connection = url 180 .openConnection(ProxySettings.getInstance() 181 .getProxy()); 182 connection.setRequestProperty("Cache-Control", 183 "no-cache"); 178 184 if (downloaded == 0) { 179 185 connection.connect();
Note:
See TracChangeset
for help on using the changeset viewer.