コード例 #1
0
ファイル: NetRequest.cs プロジェクト: joelbm24/rhodes
        private NetResponse makeResponse(String strRespBody, int nErrorCode)
        {
            NetResponse pResp = new NetResponse(strRespBody != null ? strRespBody : "", nErrorCode);

            if (pResp.isSuccess())
            {
                pResp.setCookies(m_strCookies);
            }

            return(pResp);
        }
コード例 #2
0
ファイル: NetRequest.cs プロジェクト: ycaihua/rhodes
        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);
        }
コード例 #3
0
ファイル: NetRequest.cs プロジェクト: raulvejar/rhodes
	    private NetResponse makeResponse(String strRespBody, int nErrorCode)
	    {
		    NetResponse pResp = new NetResponse(strRespBody != null ? strRespBody : "", nErrorCode );
		    if (pResp.isSuccess())
                pResp.setCookies(m_strCookies);
		
		    return pResp;
	    }
コード例 #4
0
ファイル: NetRequest.cs プロジェクト: nhinze/rhodes
	    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;
	    }