IWEB接口问题
WebRespInfo *pwri = IWEBRESP_GetInfo(phc->m_piWResp);
if (WEB_ERROR_SUCCEEDED(pwri->nCode))
{
phc->m_piSource = pwri->pisMessage;
phc->m_nContentLength = pwri->lContentLength;
phc->m_nReadedBytes = 0;
if(phc->m_nContentLength > 0)
{
phc->m_pContent = new char[phc->m_nContentLength];
}
// ....other
}
上面代码当满足条件后,为什么pwri->lContentLength的值为-1啊。。。?
查看了下它的定义
long lContentLength; /* length of *BODY* in bytes, -1 if unknown */
已知 ? 未知是什么意思