Search code examples
fiddlerjscript

Fiddler - send request for proxied client


I have Fiddler configured as a reverse proxy so as to act as a man in the middle between a client and server. I have a custom rule that will send a request from the proxy given a certain response uri:

static function OnBeforeResponse(oSession: Session) {
    ...
    if (oSession.uriContains("something.aspx")) {

        var request = "..."
        FiddlerObject.utilIssueRequest(request);
    }
...
}

Is there any way to route the request issued by utilIssueRequest back to the client machine?


Solution

  • You could, but it's very complicated to do it that way. Typically what you'd do is simply modify the request inside the OnBeforeRequest handler so that the URL/Host header point at the new target server.