Code example for CookieManager

0
    public static final String EDUX_URL = "https://edux.fit.cvut.cz/";
     
    protected final transient static CookieManager cm;
     
    static { 
        cm = new CookieManager();
        CookieHandler.setDefault(cm);
    } 
     
    protected URL url;
     
    /** 
     * Sends empty request to page. 
     * @return Server response. 
     */ 
    protected String sendRequest () throws IOException {
        return sendRequest(""); 
    } 
     
    /** 
     * Sends given request to page.