I've installed Fiddler on my Windows 7 machine and I'm trying to execute the following PHP CURL routine so that I can see the POST request body in Fiddler:
Whenever I visit the page, however, all I see in Fiddler is a GET request--not a POST request.
What do I need to do / configure in Fiddler to see the POST requests? I don't have the HTTPS Decryption enabled but that's because I shouldn't need to enable it for basic HTTP debugging (I'm not working with any SSL projects at the moment).
01.
$proxy
=
'http://localhost:8888'
;
02.
03.
$ch
= curl_init();
04.
$curlConfig
=
array
(
05.
CURLOPT_URL =>
"http://localhost/projects/curl_1/test.php"
,
06.
CURLOPT_POST => true,
07.
CURLOPT_RETURNTRANSFER => true,
08.
CURLOPT_PROXY =>
$proxy
,
09.
CURLOPT_HTTPPROXYTUNNEL => true,
10.
CURLOPT_POSTFIELDS =>
array
(
11.
'test1'
=>
'blah'
,
12.
'test2'
=>
'more blah'
,
13.
)
14.
);
15.
curl_setopt_array(
$ch
,
$curlConfig
);
16.
$result
= curl_exec(
$ch
);
Whenever I visit the page, however, all I see in Fiddler is a GET request--not a POST request.
What do I need to do / configure in Fiddler to see the POST requests? I don't have the HTTPS Decryption enabled but that's because I shouldn't need to enable it for basic HTTP debugging (I'm not working with any SSL projects at the moment).