What is the difference between HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR
What is the difference between HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR?
it is impossible to say. Different proxies may implement these, or may not. The implementations may vary from one proxy to the next, and they may not. A lack of a standard breeds question marks.
Why would one have different values than the other?
See point 1. However, from a purely practical point of view, the only reason I can see for these having different values is if more than one proxy was involved - the X-Forwarded-For: header might then contain a complete track of the forwarding chain, whereas the Client-IP: header would contain the actual client IP. This is pure speculation, however.
Where can I find resources on the exact definition of these headers.
Where can I find resources on the exact definition of these headers. - You can't. See point 1.
There does seem to be some kind of de-facto standard regarding the X-Forwarded-For: header, but given that there is no RFC that defines it this cannot be relied upon see comment below.
As a side note, the Client-IP: header should by convention be X-Client-IP: since it is a 'user-defined' header.
最新文章
- SQLServer解析xml到Oracle
- 用meta-data配置参数
- IIS7.5 HTTP 错误 500.19 - Internal Server Error 问题的解决方案
- Brief描述子
- 排行榜妙用——CSS计数器
- linux操作系统中对大小端的判断
- java 之 适配器模式(大话设计模式)
- Linuxc - 操作系统内存分配
- C++ 中vector的使用方法(转)
- Android开发 Jar mismatch! Fix your dependencies的问题
- vs2015 iis express启动不了及安装DotNetCore.1.0.0-VS2015Tools.Preview2失败的解决方法
- 第26月第6天 selenium
- python五十六课——正则表达式(常用函数之search())
- java web 验证码-字符变形(推荐)
- JS图形化插件利器组件系列 —— Gojs组件
- MongoDB和pymongo自用手册
- html + css + jquery实现简单的进度条实例
- django1.11+xadmin的搭建
- web 模板引擎
- c语言-单链表(二)