官方版
Configure a PHP/cURL Application to Use Fiddler
To configure a PHP/cURL application to send web traffic to Fiddler, add this line of code before the application sends requests, where $ch is the handle returned by curl_init():
curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888');
Or, enter this command from the command line:
curl --proxy 127.0.0.1:8888
谷歌翻译版
配置一个PHP/cURL应用程序以使用Fiddler
要配置PHP / cURL应用程序向Fiddler发送网络流量,请在应用程序发送请求之前添加以下代码,其中$ ch是curl_init()返回值:
curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888');
或者,从命令行输入此命令:
curl --proxy 127.0.0.1:8888