Winsock programming question

so i have written a proxy using winsock2. it is almost working except that when i sent back a page requested a browser, the page cannot be displayed. I ma using ffox and i have done all the required setting ( port, proxy version etc)
Does anybody knows how can i fix it ?
thnks