i found php script to ping pingomatic
PHP Code:
<?php
$content='
<?xmlversion="1.0"?>
<methodCall>
<methodName>weblogUpdates.extendedPing</methodName>
<params>
<param>
<value>OfficialGoogleBlog</value>
</param>
<param>
<value>http://googleblog.blogspot.com/</value>
</param>
<param>
<value>http://googleblog.blogspot.com/changed-page.html</value>
</param>
<param>
<value>http://googleblog.blogspot.com/atom.xml</value>
</param>
</params>
</methodCall>
';
$headers='
POST/HTTP/1.0
User-Agent:MyBlog
Host:rpc.pingomatic.com
Content-Type:text/xml
Content-length:
'.strlen($content);
$request=$headers."\r\n\r\n".$content;
$fs=@fsockopen('rpc.pingomatic.com',80);
if($fs){
fwrite($fs,$request);
}
?>
sometimes $headers have aтother values
POST/RPC2HTTP/1.0
User-Agent:request
what is right ? or its not important ?
script uses
rpc.pingomatic.com adress without http:// - what about another variant
http://rpc.pingomatic.com/rpc/ping ? what variant must be used ?
IMPORTANT - how to get response from the server ? what procedures must be aded to the script ?
ps - what address must be used to send pings to ipings.com ?