Hi All,
I really need your help...
I am about to rewrite my code to use the HS_HTTP library. The old one works
very well on TW but it lakes stability on Treo600.
So I've compiled and run HTTPLibTest sample application. But, there's one
thing that I cannot understand. Eventhough the constant
DOWNLOAD_BUFFER_SIZE is fixed to 8192, I cannot receive more than 847
characters in self->fBuffer.
Self->ContentLength and Self->CurrentLenght are giving both the right size,
ie : 1713.
and StrLen (self->fBuffer) gives 847
In fact, in
static Int32 download_receive_content ( DownloadInfo *self )
{
Int32 result;
Int32 len;
result = HS_HTTPLibStreamReceiveResponse ( gRefNum,
self->fHTTPStream, self->fBuffer, self->fBufferLen, &len, NULL );
printf ( "DRC Len : %ld\n", len);
...
}
I got DRC Len : 847.
Is there any limitation to this sample application ? or do I miss simething
?
Thank you advance...
Agus
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/