Changeset 31907 in osm for applications/editors/josm/plugins/wikipedia/src/org
- Timestamp:
- 2016-01-02T12:10:39+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java
r31881 r31907 128 128 final String requestBody = "articles=" + Utils.encodeUrl(Utils.join(",", articleNames)); 129 129 try (final Scanner scanner = new Scanner( 130 HttpClient.create(new URL(url), "PUT").setReasonForRequest("Wikipedia") 130 HttpClient.create(new URL(url), "POST").setReasonForRequest("Wikipedia") 131 .setHeader("Content-Type", "application/x-www-form-urlencoded") 131 132 .setRequestBody(requestBody.getBytes(StandardCharsets.UTF_8)) 132 133 .connect().getContentReader())
Note:
See TracChangeset
for help on using the changeset viewer.