if (imgurl != null) {
try {
URLConnection conn = null;
SetProxy sp = new SetProxy();
sp.setProxyHost(proxy);
if (port != null) {
sp.setProxyPort(Integer.parseInt(port));
}
sp.setProxyUser(user);
sp.setProxyPassword(password);
sp.applyWebProxySettings();
if (useProxy && (proxy != null && proxy.length() > 0)
&& (port != null && port.length() > 0)) {
log("Using proxied Connection", Project.MSG_DEBUG);