PHP
[PHP] CURL 로 API 호출 시 Fiddler로 캡쳐 하는 법
먹세
2021. 4. 23. 10:09
기본적으로 CURL 은 Fiddler로 캡쳐가 되지 않는다.
그래서 호출 시 프록시 세팅을 Fiddler와 맞춰주는 작업을 해줘야 가능하다.
PHP Code
curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888');
Command Line
curl --proxy 127.0.0.1:8888
Fiddler 프록시 설정
1. Tools -> Options 클릭
2. Connections 탭으로 이동
3. Fiddler listens on port: 를 8888 (위 127.0.0.1:8888 과 동일하게 맞춰주면 됨)
4. Allow remote computers to connect 체크 및 확인
반응형