public final void requestCookiesGet(
    final Map<String, Object> pAddParams) throws Exception {
    String urlGetAuthCookStr = (String) pAddParams.get("urlGetAuthCookies");
    URL urlGetAuthCookies = new URL(urlGetAuthCookStr);
    HttpsURLConnection urlConnection = null;
    BufferedReader reader = null;
    try {
      urlConnection = (HttpsURLConnection) urlGetAuthCookies.openConnection();
      urlConnection.setRequestMethod("GET");
      urlConnection.addRequestProperty("Connection", "keep-alive");
      if (HttpsURLConnection.HTTP_OK == urlConnection.getResponseCode()) {
        reader = new BufferedReader(new InputStreamReader(urlConnection
          .getInputStream(), Charset.forName("UTF-8").newDecoder()));
        while (reader.read() != -1) { //NOPMD
          //just read out
        }
      } else {
        throw new ExceptionWithCode(ExceptionWithCode.SOMETHING_WRONG,
          "requestCookiesGet Can't receive data!!! Response code="
            + urlConnection.getResponseCode());
      }
    } finally {
      if (reader != null) {
        try {
          reader.close();
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
      if (urlConnection != null) {
        urlConnection.disconnect();
      }
    }
  }
public final void requestCookiesGet(
    final Map<String, Object> pAddParams) throws Exception {
    String urlGetAuthCookStr = (String) pAddParams.get("urlGetAuthCookies");
    URL urlGetAuthCookies = new URL(urlGetAuthCookStr);
    HttpsURLConnection urlConnection = null;
    BufferedReader reader = null;
    try {
      urlConnection = (HttpsURLConnection) urlGetAuthCookies.openConnection();
      urlConnection.setRequestMethod("GET");
      urlConnection.addRequestProperty("Connection", "keep-alive");
      if (HttpsURLConnection.HTTP_OK == urlConnection.getResponseCode()) {
        reader = new BufferedReader(new InputStreamReader(urlConnection
          .getInputStream(), Charset.forName("UTF-8").newDecoder()));
        while (reader.read() != -1) { 
          
        }
      } else {
        throw new ExceptionWithCode(ExceptionWithCode.SOMETHING_WRONG,
          "requestCookiesGet Can't receive data!!! Response code="
            + urlConnection.getResponseCode());
      }
    } finally {
      if (reader != null) {
        try {
          reader.close();
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
      if (urlConnection != null) {
        urlConnection.disconnect();
      }
    }
  }
public final void requestCookiesGet ( final Map < String , Object > pAddParams ) throws Exception { String urlGetAuthCookStr = ( String ) pAddParams . get ( "urlGetAuthCookies" ) ; URL urlGetAuthCookies = new URL ( urlGetAuthCookStr ) ; HttpsURLConnection urlConnection = null ; BufferedReader reader = null ; try { urlConnection = ( HttpsURLConnection ) urlGetAuthCookies . openConnection ( ) ; urlConnection . setRequestMethod ( "GET" ) ; urlConnection . addRequestProperty ( "Connection" , "keep-alive" ) ; if ( HttpsURLConnection . HTTP_OK == urlConnection . getResponseCode ( ) ) { reader = new BufferedReader ( new InputStreamReader ( urlConnection . getInputStream ( ) , Charset . forName ( "UTF-8" ) . newDecoder ( ) ) ) ; while ( reader . read ( ) != - 1 ) { //NOPMD //just read out } } else { throw new ExceptionWithCode ( ExceptionWithCode . SOMETHING_WRONG , "requestCookiesGet Can't receive data!!! Response code=" + urlConnection . getResponseCode ( ) ) ; } } finally { if ( reader != null ) { try { reader . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } if ( urlConnection != null ) { urlConnection . disconnect ( ) ; } } }
<p>Connect to secure address with method GET to receive
authenticate cookies.</p>
@param pAddParams additional params
@throws Exception - an exception
<p > Connect to secure address with method GET to receive authenticate cookies . < / p >