PHP: <?php $adres = 'some-blog.com'; $author = urlencode('name'); $email = urlencode('email'); $comment = urlencode('this is the test comment'); $post_ID = 10; $fp = fsockopen($adres, 80, $errno, $errstr); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { $postlen = strlen("author=".$author."&email=".$email."&url=&comment=".$comment."&submit=Post+Comment&comment_post_ID=".$post_ID."&comment_parent=0"); $out = "POST /wp-comments-post.php HTTP/1.1\r\n"; $out .= "Host: ".$adres."\r\n"; $out .= "Content-Length: ".$postlen."\r\n"; $out .= "Cache-Control: max-age=0\r\n"; $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; $out .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"; $out .= "User-Agent: ".$_SERVER['HTTP_USER_AGENT']."\r\n"; $out .= "Accept-Encoding: gzip,deflate,sdch\r\n"; $out .= "Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4\r\n"; $out .= "Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.3\r\n"; $out .= "Cookie: income=1\r\n"; $out .= "Connection: close\r\n\r\n"; $out .= "author=".$author."&email=".$email."&url=&comment=".$comment."&submit=Post+Comment&comment_post_ID=".$post_ID."&comment_parent=0"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } ?>