package com.rho.net;

public class NetResponse {
	private String m_strData = null;
	private int    m_nRespCode;
	private String m_strCookies;
	
//	public NetResponse( String strData ){ m_strData = strData; m_nRespCode = -1; }
	public NetResponse( String strData, int nRespCode ){ m_strData = strData; m_nRespCode = nRespCode; }
	
	public String getCharData()
    {
    	return m_strData;
    }
	public void setCharData(String strData)
    {
    	m_strData = strData;
    }
    
	public int getDataSize()
    {
    	return m_strData != null ? m_strData.length() : 0;
    }
	
	public int getRespCode()
	{
		return m_nRespCode;
	}
	
	public boolean isOK()
	{
		return m_nRespCode == IHttpConnection.HTTP_OK || m_nRespCode == IHttpConnection.HTTP_PARTIAL_CONTENT;
	}

	public boolean isUnathorized()
	{
		return m_nRespCode == IHttpConnection.HTTP_UNAUTHORIZED;
	}
	
	public void setCookies(String s)
    {
        m_strCookies = s;
    }
    
	public String getCookies()
    {
        return m_strCookies;
    }
}

@@ -133,16 +133,21 @@
 rCookies
+ = %22%22
 ;%0A%09%0A//%09p

fix issue with AsyncHttp cookies