Headers

i m writing a small web server. i just want to know that when the client downloads something it should first check in the cache and if it is in the cache it  should download from the cache . accroding to me to enable  this u have to pass some headers which include last modified date .But when i pass the header like http/1.0 200 ok , after sending this i send the page . but it appears as junk char in the html page . can anyone tell me where i m going wrong

Ajay

***************************************************************
MicroWorld Software Services Pvt Ltd (MSSPL)
Web :       http://www.mspl.net
E-Mail :    sales@mspl.net
Phones    : +91-22-826 5701 to 826 5705/35/36/39/40
Fax       : +91-22-830 4750

MailScan  : Content Security for your EMail Servers and Gateways
eScan     : Content Security for your Workstations and File-Servers

eScan & MailScan are the world's first "real-time" Content-Security
and  Virus  Scanner products, using the  MicroWorld Winsock Layer 
(MWL) Technology.
***************************************************************

Received on Tuesday, 4 September 2001 10:25:33 UTC