I have lots of Drupal powered website. Each of the website has Multiping module to pinging ping server.
Is there any way of send pinging through command-line?
I hope I can build dedicated server for pinging.
|
I have lots of Drupal powered website. Each of the website has Multiping module to pinging ping server. Is there any way of send pinging through command-line? I hope I can build dedicated server for pinging. |
|||
|
As Caleb notes, cURL is usually the weapon of choice for command-line HTTP. The tricky part - as Caleb again notes - is putting the request together, especially for XML-RPC, where the server is likely looking for a well-formed input. But if you poke around at the source for Multipin, you see that it's not just a simple HTTP request (thought it does fall back to that) - and it changes based on what services the target service has enabled -- and, in the case of weblogUpdates -- special-cases what is sent:
And a few lines above, it's clever about deciding what rss URL to send, based on taxonomy, etc. So I'd suggestion one of two approaches.
Good luck! |
|||
|
|
curlto make the requests. – Caleb Jul 29 '11 at 7:56