>> With HTTP component, you always get the data exactly as the server sent
>> it. HTTP component does do any processing on the data itself. It is 
>> stored
>> as is in the stream you provide for storage.

>    Then how come Mozilla Firefox doesn´t have this weird char problem?

Firefox is much more than a HTTP component. It has an engine which interpret 
the document AND the header sent by the server.

> I just used a TMemoryStream instead of using my old TStringStream, 
> debugged
> the contents of the Buffer and it is as buggy as it was.

How do you know it is buggy ? I'm sure the problem is that you don't 
interpret the data as it is encoded. There are many many ways to represent 
characters. Not only speaking about the code used (one byte, two bytes, 
multiple bytes, varying number of bytes) but also character sets (mapping 
between a given code and the character "image").

>    How come the server is sending me something and the browser something
> else?

The browser doesn't send anything. The browser interpret what the server 
It may happend that the server doesn't send the same thing to your program 
than it sends to the browser. Why ? Because a HTTP request is composed of an 
URL but also a header with many kind of informations the client give to help 
the server send the correct content.

Use a sniffer to compare the request the browser send (pay attention to the 
header lines) and what the server returns. Build the same request with the 
HTTP component and verify that the server send the exact same content (it 
will for sure if the request is the same in all details).

> Because I trully don't believe that Mozilla Firefox is parsing
> that kind of data. It even doesn't respect the same amount of bytes per 
> char
> ...). I don't get it.. Me stupid!!! 8/

I'm sure the browser parse the data and the header to show you the correct 

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html

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