Have a look at the function:
nsHttpTransaction::HandleContent(char *buf,
PRUint32 count,
PRUint32 *contentRead,
PRUint32 *contentRemaining)
The <buf> variable points to a chunk of data of <count> bytes.
You can read the data inside <buf> with no fear that anything gets messed-up.
Be aware of the fact that <buf> does not contain Http transaction headers,
but (typically) file (Resource, as in URL) data.
To get data from headers, access nsHttpResponseHead instances.
I hope this info helps.
_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib