PHP / Curl Monitoring Using Fiddler

I recently made some HTTP requests using php and curl, and wanted to parse requests and responses with a violinist. The machine running php scripts is located on a Linux virtual machine, and the script runs on a machine with an open port. This should work, but every time I use the CURLOPT_PROXY parameter in curl_setopt, it uses an HTTP tunnel to connect to the violinist, and requests and responses are not displayed. Is there any way to fix this?

I also tried: curl_setopt ($ ch, CURLOPT_HTTPPROXYTUNNEL, FALSE); to no avail

+5
source share
1 answer

I think you need to explicitly specify the ip address: host fiddler after curl_init () as follows:

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

more details here

+7
source

All Articles