1
PHP에서 libcurl을 사용하여 게시물 데이터를 포함한 전체 요청 헤더를 볼 수 있습니까?CURL의 요청 헤더가 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);
나는 내가하고 내가 내 모바일 애플리케이션이 API를 사용하여 원하는 http://www.facebax.com/1/statuses/update.xml 에 보내는 방법
중복 가능성 (http://stackoverflow.com/questions/1828935/php-curl-and-raw-headers) –