Home  >  Article  >  Operation and Maintenance  >  Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

PHPz
PHPzOriginal
2018-09-01 12:01:1914882browse


#As an SEO person, it is necessary to use good tools! Regarding the submission of URL data to Baidu search engine, the "active push (real-time)" in Baidu Xiongzhao historical content submission and Baidu Resource Webmaster Platform link submission all mentioned the use of the CURL command, but many friends still do not know curl How to use it? There are also some installation and configuration tutorials on the Internet, but they are not detailed enough. Today PHP Chinese SEOer will make a detailed graphic tutorial on curl installation, configuration, and use (personal test was successful). I hope it can help everyone!

Related recommendations: Baidu Xiongzhanghao professional Q&A PHP method push complete code (with instructions)

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

##1: What is CURL?

curl is an open source file transfer tool that uses URL syntax to work in command line mode. It is widely used in Unix and various Linux distributions, and has transplanted versions under DOS, Win32, and Win64. Here we mainly introduce the use of CURL in URL push.

2: CURL official download

Just follow these steps, don’t skip a step!

Search curl download on Baidu, find the curl official website, and click to enter. As shown below


Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

No matter your WINDOWS computer is 32-bit or 64-bit, choose Windows 32 bit 7.61.0 binary the curl project as shown below:

图1:Windows 32 bit curl

Figure 1: Windows 32 bit 7.61.0 binary the curl project

Figure 2: CURL for 32 bit download图2:CURL for 32 bit下载

Three: CURL installation and configuration steps

Step 1. After downloading, unzip and place it on the D drive. The folder name can be changed to mine, avoiding special symbols: D:\curl\curlwin32\bin

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

Step 2. Copy the CURL.EXE file to the system C:\Windows\System32 directory

Step 3. Desktop "My Computer" "Right-click "Properties", find "Environment Variables (N)..." under the "Advanced" tab, open the "Environment Variables" dialog box, create a new variable named curls, and set the variable value to the directory D copied in the previous step. :\curl\curlwin32\bin\curl.exe

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

Step 4. Find the variable "Path" in "System Variables", click "Edit", and in the pop-up " Add a variable value in the "Edit System Variables" dialog box, the format is;% variable name%, as shown in the figure we set it to;%curls% as shown below:

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)##5. "Start" - "Run" - enter cmd, open the command prompt window, enter the curl --help command and press Enter. If the following figure appears, it means curl is installed successfully.

curl --help 命令

Four: CURL command push example

Step 1: Create a new urls.txt file on the D drive (note that the name must be urls.txt), paste the URL to be pushed into the urls.txt file in the format of one URL per line.

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)Step 2: Switch the cmd command drive letter to the D: drive and enter the curl push command (Copy your curl push command code on the webmaster resource platform or Xiongzhaohao) ), as shown below

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)

5: CURL command successfully returns result example

Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps)This is curl The installation and usage tutorials are all over, just follow the steps in the pictures and text! All that's left is to quickly push the URL you want to push to Baidu search engine, and let Baidu search engine take the initiative to crawl it. I won't talk about the benefits, so everyone should act quickly!



The above is the detailed content of Baidu Xiongzhanghao resource platform URL link submission using the curl command push example (installation and configuration graphic steps). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn