I am trying to ping (SEO tactic called “ping” is used for new content to get robots index it faster) Google in PHP. Only thing I know is that I need to send my request to following url:
http://blogsearch.google.com/ping/RPC2
Probably I can use PHP XML-RPC functions. I don’t know how to format my request and which method to use.
As far as you’re concerned to do the XML-RPC request (Example #1).
If you follow the specification of a pingback, it would look like this:
Which would give you the following output:
Generally, if you don’t know which method you call, you can also try XML-RPC Introspection – but not all XML-RPC servers offer that.
You asked in a comment:
A pingback enabled site is a website that announces an XML-RPC pinbback service as well. That’s done with the HTMl
<link>element in the<head>section. Example:The
hrefpoints to an XML-RPC endpoint that has thepingback.pingmethod available.Or it’s done by sending a specifc HTTP response header:
See pingback-enabled resource.
So if you ping others, others should be able to ping you, too.