Черт, я получил это сам ...
<code>$request_data = http_build_query(
array(
'email' =>$thumblr['email'],
'password' =>$thumblr['pass'],
'id' =>$thumblr['header_id'],
'tagged' =>$thumblr['the_tag']
)
);
$c = curl_init('http://'.$thumblr['acc_name'].'.tumblr.com/api/read');
curl_setopt($c, CURLOPT_POST, true);
curl_setopt($c, CURLOPT_POSTFIELDS, $request_data);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($c);
$status = curl_getinfo($c, CURLINFO_HTTP_CODE);
curl_close($c);
switch ($status) {
case '200': $msg = 'OK'; break;
case '201': $msg = "Created - Success! The new post ID is $result.\n"; break;
case '400': $msg = 'Bad Request - There was at least one error while trying to save your post.'; break;
case '403': $msg = 'Forbidden - Your email address or password were incorrect.'; break;
default: $msg = $result; break;
}
echo '<p>'.$msg.'</p><pre>'.print_r($result,1).'
';