src/parse.c
int parse_getContentLength(char* strPtr)
{
   char* tempPtr;
   int content_length = -1;

   if (parse_fullHeaderFound(strPtr))
   {
      tempPtr = strstr(strPtr, CONTENT_LENGTH_STR);
      if (tempPtr)
      {
         tempPtr += strlen(CONTENT_LENGTH_STR); // Look past the "Content-Length"
         content_length = strtol(tempPtr, NULL, 10);
      }
   }

   return content_length;
}
//!
//! Get the content length from the specified http data buffer.
//!
//! @param[in] strPtr  Pointer to http string
//!
//! @return  -1 if content length not found, otherwise length in bytes
//!

Get the content length from the specified http data buffer.
Get the content length from the specified http data buffer .
int parse_getContentLength(char* strPtr)
{
   char* tempPtr;
   int content_length = -1;
   if (parse_fullHeaderFound(strPtr))
   {
      tempPtr = strstr(strPtr, CONTENT_LENGTH_STR);
      if (tempPtr)
      {
         tempPtr += strlen(CONTENT_LENGTH_STR); 
         content_length = strtol(tempPtr, NULL, 10);
      }
   }
   return content_length;
}
int parse_getContentLength ( char * strPtr ) { char * tempPtr ; int content_length = -1 ; if ( parse_fullHeaderFound ( strPtr ) ) { tempPtr = strstr ( strPtr , CONTENT_LENGTH_STR ) ; if ( tempPtr ) { tempPtr += strlen ( CONTENT_LENGTH_STR ) ; content_length = strtol ( tempPtr , NULL , 10 ) ; } } return content_length ; }
Get the content length from the specified http data buffer.
Get the content length from the specified http data buffer .
// Look past the "Content-Length"
