> Whats the buffer size od HTTPCli? When im using strpas(buffer) in
OnDocData
> event... is there any way to predict if the single buffer is full doc data
> or not?

OnDocData event pass a length buffer in argument. The receive buffer is
dimensionned using HTTP_RCV_BUF_SIZE constant.

You shouldn't use StrPas which would stop at the first nul character in the
data stream. A nul char is perfectly allowed in a HTTP data flow. If you
want to use strings, use something like:

SetLength(Buf, Len);
if Len > 0 then
     Move(PChar(Buffer)^, Buf[1], Len);

And of course make sure you don't use "nul terminated string" function to
handle the data.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to