I am currently developing a proxy server and have discovered HTTP_VIA and HTTP_X_FORWARDED_FOR

these are set to an IP address depending on which class of proxy is being used. I have checked through the HTTP/1.1 RFC and cannot seem to find any info, does anyone know how they are implemented.