Index: trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/OsmServerReader.java	(revision 8562)
+++ trunk/src/org/openstreetmap/josm/io/OsmServerReader.java	(revision 8563)
@@ -135,4 +135,5 @@
                 throw new OsmTransferException(tr("Failed to open connection to API {0}.", url.toExternalForm()), e);
             }
+            Utils.setupURLConnection(activeConnection);
             if (cancel) {
                 activeConnection.disconnect();
@@ -148,6 +149,4 @@
                 activeConnection.setRequestProperty("Accept-Encoding", "gzip, deflate");
             }
-
-            activeConnection.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect", 15)*1000);
 
             try {
