Ignore:
Timestamp:
2016-03-05T21:36:33+01:00 (4 years ago)
Author:
simon04
Message:

see #12584 - Attempt to obtain the session cookie via CookieManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r9915 r9935  
    99import java.io.InputStream;
    1010import java.io.OutputStream;
     11import java.net.CookieHandler;
     12import java.net.CookieManager;
    1113import java.net.HttpRetryException;
    1214import java.net.HttpURLConnection;
     
    5153    private transient HttpURLConnection connection; // to allow disconnecting before `response` is set
    5254    private transient Response response;
     55
     56    static {
     57        CookieHandler.setDefault(new CookieManager());
     58    }
    5359
    5460    private HttpClient(URL url, String requestMethod) {
Note: See TracChangeset for help on using the changeset viewer.