Added additional HTTP headers to parse for IP address detection.
Fix parsing errors in incomplete function.