Search code examples
headerfiddlerx-forwarded-for

How to add the client ip in request header in fiddler


I am using fiddler as a reverse proxy, I want to forward the client ip in the request header so that the server can get it like this:

oSession.oRequest["X-Forwarded-For"]=;

But I don't know the variable name that I should set, can anyone help me with this? Thanks a lot.


Solution

  • I found the answer:

    oSession.oRequest["X-Forwarded-For"]=oSession.oFlags["X-ClientIP"]