Changeset 29719 in osm for applications/editors/josm/plugins/DirectUpload/src
- Timestamp:
- 2013-06-28T04:11:28+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java
r29718 r29719 42 42 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 43 43 import org.openstreetmap.josm.io.GpxWriter; 44 import org.openstreetmap.josm.io.OsmApi; 44 45 import org.openstreetmap.josm.tools.GBC; 45 46 import org.openstreetmap.josm.tools.UrlLabel; 47 import org.openstreetmap.josm.tools.Utils; 46 48 47 49 /** … … 96 98 97 99 // Constants used when generating upload request 98 private static final String API_VERSION = "0.6";99 100 private static final String BOUNDARY = "----------------------------d10f7aa230e8"; 100 101 private static final String LINE_END = "\r\n"; … … 285 286 286 287 // Upload URL 287 URL url = new URL( "http://www.openstreetmap.org/api/" + API_VERSION + "/gpx/create");288 URL url = new URL(OsmApi.getOsmApi().getBaseUrl() + "gpx/create"); 288 289 289 290 // Set up connection and log in 290 HttpURLConnection c = (HttpURLConnection) url.openConnection();291 HttpURLConnection c = Utils.openHttpConnection(url); 291 292 c.setFixedLengthStreamingMode(contentLength); 292 293 c.setConnectTimeout(15000);
Note:
See TracChangeset
for help on using the changeset viewer.