Ignore:
Timestamp:
2014-05-14T19:19:40+02:00 (11 years ago)
Author:
simon04
Message:

fix #josm#9796 - JOSM/wikipedia: switch to HTTPS, update WIWOSM URLs

File:
1 edited

Legend:

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

    r30125 r30448  
    4343            final String bbox = min.lon() + "," + min.lat() + "," + max.lon() + "," + max.lat();
    4444            // construct url
    45             final String url = "http://toolserver.org/~kolossos/geoworld/marks.php?"
     45            final String url = "https://tools.wmflabs.org/wp-world/marks.php?"
    4646                    + "bbox=" + bbox + "&LANG=" + wikipediaLang;
    4747            System.out.println("Wikipedia: GET " + url);
     
    7373    static List<WikipediaEntry> getEntriesFromCategory(String wikipediaLang, String category, int depth) {
    7474        try {
    75             final String url = "http://tools.wmflabs.org/cats-php/"
     75            final String url = "https://tools.wmflabs.org/cats-php/"
    7676                    + "?lang=" + wikipediaLang
    7777                    + "&depth=" + depth
     
    108108        Map<String, Boolean> status = new HashMap<String, Boolean>();
    109109        if (!articleNames.isEmpty()) {
    110             final String url = "http://toolserver.org/~master/osmjson/getGeoJSON.php?action=check"
     110            final String url = "https://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?action=check"
    111111                    + "&lang=" + wikipediaLang;
    112112            System.out.println("Wikipedia: POST " + url + " " + articleNames);
     
    163163        try {
    164164            Collection<WikipediaLangArticle> r = new ArrayList<WikipediaLangArticle>();
    165             final String url = "http://" + wikipediaLang + ".wikipedia.org/w/api.php" +
     165            final String url = "https://" + wikipediaLang + ".wikipedia.org/w/api.php" +
    166166                    "?action=query" +
    167167                    "&prop=langlinks" +
     
    294294        private void updateWiwosmStatus() {
    295295            try {
    296                 final String url = "http://toolserver.org/~master/osmjson/getGeoJSON.php?action=check"
     296                final String url = "https://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?action=check"
    297297                        + "&lang=" + wikipediaLang
    298298                        + "&article=" + encodeURL(wikipediaArticle);
     
    314314
    315315        public String getBrowserUrl() {
    316             return "http://" + wikipediaLang + ".wikipedia.org/wiki/"
     316            return "https://" + wikipediaLang + ".wikipedia.org/wiki/"
    317317                    + encodeURL(wikipediaArticle.replace(" ", "_"));
    318318        }
Note: See TracChangeset for help on using the changeset viewer.