Ignore:
Timestamp:
2016-01-02T12:10:39+01:00 (9 years ago)
Author:
simon04
Message:

JOSM/wikipedia: fix and test WIWOSM status fetching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java

    r31881 r31907  
    128128                final String requestBody = "articles=" + Utils.encodeUrl(Utils.join(",", articleNames));
    129129                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")
    131132                                .setRequestBody(requestBody.getBytes(StandardCharsets.UTF_8))
    132133                                .connect().getContentReader())
Note: See TracChangeset for help on using the changeset viewer.