-------- Original-Nachricht --------
> Datum: Wed, 17 Sep 2008 22:16:33 -0300
> Von: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: [Synalist] Very simple http server
> OutputData := TMemoryStream.Create;
[...]
> ASocket.SendString('Content-length: ' + IntTostr(OutputData.Size) +
> CRLF);
At this point: What do you expect OutputData.Size to be be? I'd expect zero.
> OutputData.WriteAnsiString('<html><h1>Teste</h1></html>');
>
> ASocket.SendBuffer(OutputData.Memory, OutputData.Size);
Now you're sending something to the browser, but given the Content-Length of
zero, my guess would be that the browser simply ignores the additional data.
Vinzent.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public