查看CURL';s的请求标头包含POST数据


View CURL's request headers complete with POST data

如何在php中使用libcurl查看完整的请求头,包括post数据?

    $username = ($_POST['t_user']);
$password = ($_POST['t_pass']);
$message = ($_POST['t_update']);
$url = 'http://www.facebax.com/1/statuses/update.xml';
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "$url");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
$buffer = curl_exec($curl_handle);

我尝试获取不需要的命令curl_getinfo数据我想知道什么信息以及如何发送http://www.facebax.com/1/statuses/update.xml我想将该api用于我的移动应用程序

我用这个来获得关于卷曲的信息:

$f = fopen('request.txt', 'w');
curl_setopt($curl_handle,CURLOPT_VERBOSE,true);
curl_setopt($curl_handle,CURLOPT_STDERR ,$f);