private NetResponse makeResponse(String strRespBody, int nErrorCode) { NetResponse pResp = new NetResponse(strRespBody != null ? strRespBody : "", nErrorCode); if (pResp.isSuccess()) { pResp.setCookies(m_strCookies); } return(pResp); }
private NetResponse makeResponse(String strRespBody, int nErrorCode) { NetResponse pResp = new NetResponse(strRespBody != null ? strRespBody : "", nErrorCode); if (pResp.isSuccess()) { if (m_strCookies == "" && m_strRespBody != null && m_strRespBody.Contains("rhoconnect_session")) { m_strRespBody = m_strRespBody.Replace('{', ' '); m_strRespBody = m_strRespBody.Replace('}', ' '); m_strRespBody = m_strRespBody.Replace('"', ' '); string[] cookies = m_strRespBody.Split(':'); m_strCookies = cookies[1].Trim(); m_strCookies = Uri.UnescapeDataString(m_strCookies); } pResp.setCookies(m_strCookies); } return(pResp); }
private NetResponse makeResponse(String strRespBody, int nErrorCode) { NetResponse pResp = new NetResponse(strRespBody != null ? strRespBody : "", nErrorCode ); if (pResp.isSuccess()) pResp.setCookies(m_strCookies); return pResp; }
private NetResponse makeResponse(String strRespBody, int nErrorCode) { NetResponse pResp = new NetResponse(strRespBody != null ? strRespBody : "", nErrorCode ); if (pResp.isSuccess()) { if (m_strCookies == "" && m_strRespBody != null && m_strRespBody.Contains("rhoconnect_session")) { m_strRespBody = m_strRespBody.Replace('{', ' '); m_strRespBody = m_strRespBody.Replace('}', ' '); m_strRespBody = m_strRespBody.Replace('"', ' '); string[] cookies = m_strRespBody.Split(':'); m_strCookies = cookies[1].Trim(); m_strCookies = Uri.UnescapeDataString(m_strCookies); } pResp.setCookies(m_strCookies); } return pResp; }