3

Im trying to stop using TcpTrace and start working with Fiddler.

But i just can't setup fiddler to just start listening specified port and redirect all requests to the specified WS with another port.

All i want is just redirect and monitor all traffic from localhost:4747 -> webservice-ip:10000
Is there any solution for my problem ?

Thanks in advance.

redcalx
  • 8,177
  • 4
  • 56
  • 105
Igor Konoplyanko
  • 9,176
  • 6
  • 57
  • 100
  • 2
    You have to set your web client to honor the Internet Explorer proxy settings *or* manually configure it to use Fiddler as a proxy. – bzlm Sep 20 '10 at 08:33
  • I dont need a web client. I have a local webserver that sends all HTTP requests to the localhost:4747. I want to redirect traffic from 4747 to external:1000 – Igor Konoplyanko Sep 20 '10 at 08:41

1 Answers1

2

Set Fiddler to listen on port 4747, and then edit your CustomRules.js (menu->Rules->Customize Rules). Putting something like this into the OnBeforeRequest method should help:

if (oSession.host=="localhost:4747") {
  oSession.host="external:1000";
}

if you want all traffic passing through Fiddler to go to the external host, you can simply use

oSession.host="external:1000";

(where external is the hostname of the external host)

Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222