js안 소스

/** The original page id sent from the server */

dwr.engine._origScriptSessionId = "D6AFC8506B0A573B02043DD2E35E3541";


/** The read page id that we calculate */

dwr.engine._scriptSessionId = null;


/** The function that we use to fetch/calculate a session id */

dwr.engine._getScriptSessionId = function() {

  if (dwr.engine._scriptSessionId == null) {

    dwr.engine._scriptSessionId = dwr.engine._origScriptSessionId + Math.floor(Math.random() * 1000);

  }

  return dwr.engine._scriptSessionId;

};

//소스 

  response = httpClient.execute(httpGet);

        HttpEntity entity = response.getEntity();

        

        ((DefaultHttpClient)httpClient).getCookieStore().addCookie(cookie.get(0));

        BufferedReader br = null;      

        String line = null;

        String session = null;

        try {

            br = new BufferedReader(new InputStreamReader(entity.getContent(),"utf-8"));

            while((line = br.readLine()) != null) {

            if(line.contains("dwr.engine._origScriptSessionI"))

            {

            session=line.split("\"")[1];

            break;

            }

            }          

        } finally {

            if(br != null) try { br.close(); } catch(Exception e) {}

        }