Index: /trunk/src/org/openstreetmap/josm/io/OsmApi.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/OsmApi.java	(revision 2221)
+++ /trunk/src/org/openstreetmap/josm/io/OsmApi.java	(revision 2222)
@@ -163,5 +163,5 @@
         initAuthentication();
         try {
-            String s = sendRequest("GET", "capabilities", null,monitor);
+            String s = sendRequest("GET", "capabilities", null,monitor, false);
             InputSource inputSource = new InputSource(new StringReader(s));
             SAXParserFactory.newInstance().newSAXParser().parse(inputSource, new CapabilitiesParser());
@@ -459,4 +459,8 @@
     }
 
+    private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor) throws OsmTransferException {
+        return sendRequest(requestMethod, urlSuffix, requestBody, monitor, true);
+    }
+
     /**
      * Generic method for sending requests to the OSM API.
@@ -474,7 +478,6 @@
      *    been exhausted), or rewrapping a Java exception.
      */
-    private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor) throws OsmTransferException {
+    private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor, boolean doAuthenticate) throws OsmTransferException {
         StringBuffer responseBody = new StringBuffer();
-
         int retries = getMaxRetries();
 
@@ -486,5 +489,7 @@
                 activeConnection.setConnectTimeout(15000);
                 activeConnection.setRequestMethod(requestMethod);
-                addAuth(activeConnection);
+                if (doAuthenticate) {
+                    addAuth(activeConnection);
+                }
 
                 if (requestMethod.equals("PUT") || requestMethod.equals("POST") || requestMethod.equals("DELETE")) {
