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.

最新文章

  1. SQLServer解析xml到Oracle
  2. 用meta-data配置参数
  3. IIS7.5 HTTP 错误 500.19 - Internal Server Error 问题的解决方案
  4. Brief描述子
  5. 排行榜妙用——CSS计数器
  6. linux操作系统中对大小端的判断
  7. java 之 适配器模式(大话设计模式)
  8. Linuxc - 操作系统内存分配
  9. C++ 中vector的使用方法(转)
  10. Android开发 Jar mismatch! Fix your dependencies的问题
  11. vs2015 iis express启动不了及安装DotNetCore.1.0.0-VS2015Tools.Preview2失败的解决方法
  12. 第26月第6天 selenium
  13. python五十六课——正则表达式(常用函数之search())
  14. java web 验证码-字符变形(推荐)
  15. JS图形化插件利器组件系列 —— Gojs组件
  16. MongoDB和pymongo自用手册
  17. html + css + jquery实现简单的进度条实例
  18. django1.11+xadmin的搭建
  19. web 模板引擎
  20. c语言-单链表(二)

热门文章

  1. JUC源码分析-线程池篇(三)ScheduledThreadPoolExecutor
  2. Java中有趣的String、StringBuffer与StringBuilder
  3. linux每日命令(3):which命令
  4. Storm设计思想
  5. struts2验证器
  6. 关闭swap
  7. svg实现绘制路径动画
  8. IDEA使用maven插件打jar包流程
  9. scala自定义隐式转换
  10. HIVE常用SQL语句及语法