S
S
skyfly20102015-11-05 00:25:12
XML
skyfly2010, 2015-11-05 00:25:12

How to ping to index a site?

Good afternoon. On the pages of the yashka I found this code:

POST /RPC2 HTTP/1.1
Host: ping.blogs.yandex.ru
Content-Type: text/xml
Content-length: 318

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
    <methodName>weblogUpdates.ping</methodName>
    <params>
        <param>
            <value>Лучший подарок — это книга</value>
        </param>
        <param>
            <value>http://clubs.ya.ru/company/rss/posts.xml</value>
        </param>
    </params>
</methodCall>

Link to the page: https://blogs.yandex.ru/pings/info/
The question is how to use it in practice? That is, at the stage of adding a page to the site, the site must execute this code, as I understand it.
Tell me, if I have my own admin panel, can I somehow integrate this code into a php page that adds MySQL data to the database. As I understand it, I need to put this code after the insert in the database, but I don’t quite understand how the data is transferred to the Yandex server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Lyzlov, 2015-11-05
@skyfly2010

www.weblogs.com/api.html
Address: ping.blogs.yandex.ru/RPC2
Method: weblogUpdates.ping (weblogname, weblogurl, changesurl=weblogurl, xmlurl=weblogfeedurl, categoryname="none") returns struct;
Everything you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question