How to edit http header

I m working on Bandwidth Manager as my final year project. The client(s) are on private IPs & I (administrator PC) have public IP. When client request a page , for example, www.google.com, the source IP in header of the page is that client's private IP. I have to edit the header and change source IP to my public IP and send the request to internet.

I have caught the http request, but don't know how make changes in header ? Should I have to make a new header containing the same request as client ?

Plz reply

[537 byte] By [M_Hassana] at [2007-11-26 14:33:28]
# 1
What kind of application is your "Bandwidth Manager"? Is it somethink like HTTP proxy? Make your question clear.BTW: How do you know "the source IP in header of the page is that client's private IP"?
Michael.Nazarov@sun.coma at 2007-7-8 2:29:17 > top of Java-index,Core,Core APIs...
# 2
There is no HTTP header with IP.
cotton.ma at 2007-7-8 2:29:17 > top of Java-index,Core,Core APIs...
# 3
Thanks for ur replies ....I just simply want to make a change in a filed of HTTP header.
M_Hassana at 2007-7-8 2:29:17 > top of Java-index,Core,Core APIs...
# 4
> Thanks for ur replies ....> > I just simply want to make a change in a filed of> HTTP header.Okay then do that.Why do I think you are trying to capture and alter IP headers though....
cotton.ma at 2007-7-8 2:29:17 > top of Java-index,Core,Core APIs...