1

I have a test website hosted on Apache on my local machine. I have a php script that makes a call to a remote website.

I would like to capture this traffic in Fiddler, but I'm assuming that Apache is opening another port to perform that communication so Fiddler doesn't know about it.

How should I configure Fiddler to know about that communication?

ajon
  • 7,868
  • 11
  • 48
  • 86
  • possible duplicate of [How do I get Fiddler to stop ignoring traffic to localhost?](http://stackoverflow.com/questions/214308/how-do-i-get-fiddler-to-stop-ignoring-traffic-to-localhost) – CodeCaster Jul 15 '13 at 17:09
  • This is not a duplicate because this is a different issue. localhost traffic is being captured, it is just the external calls from apache that are not working. – ajon Jul 15 '13 at 17:31

1 Answers1

2

To capture curl traffic use the following line before making any curl calls:

curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888');

This configures curl to use fiddler as a proxy for it's external traffic.

ajon
  • 7,868
  • 11
  • 48
  • 86