The Http request refers to the client's request message to the server. The Http request is mainly divided into get or post. In the Linux system, the curl and wget commands can be used to simulate the Http request. Let's talk about how the Linux system simulates the get or post request of Http.
a, get request:
1, using the curl command:
curl & ldquo; http: //www.baidu.com” if the URL points to where A file or a picture can be downloaded directly to the local
curl -i “http://www.baidu.com” Show all information
curl -l “http ://www.baidu.com” Only show head information
curl -v “http://www.baidu.com” Display get request full process resolution
2, use Wget command:
wget “http://www.baidu.com”also available
Second, post request
1, use the curl command (via the -d parameter , put the access parameters in it):
curl -d “param1=value1¶m2=value2” “http://www.baidu.com”
2, use wget Command: (--post-data parameter to implement)
wget --post-data ‘user=foo&password=bar’ http://www.baidu.com
Is the method of Linux emulating Http get or post request , So that Linux systems can also send messages to a remote server.
Linux has a variety of commands, and yum is one of the most commonly used commands.
In the Linux system, if you browse the webpage when you download something, it will
GOG is a foreign hot game sales website, we can buy and download popular games above, but GOG only h
In the Linux system operation, in addition to using the system to view the system i
Linux uses /etc/group file to manage user methods
Linux system iPtraf installation and use method
Linux system XF86Setup command syntax and use parameters
How do Linux systems delete icons on the gnome panel?
How to use the df command to view Linux disk space?
Ubuntu when copying files prompts how to resolve Permission denied?
Ubuntu10.10 configuration R environment method
How Linux uses ssh to transfer files to FTP space
What if the Linux partition read-only causes the database to stop writing data?
How to configure the IP and host name of the CentOS7 system
Windows XP operating system common troubleshooting ideas
Win8 prompt stop working reason analysis and repair
Ghost image file maintenance tips
Win10 preview version 10051 Chinese version of the homemade system iso image download address
Cleverly change the time style of Win7 system tray
Solution for failing to connect to VPN proxy under Win8 system
How to solve Chinese characters garbled under win7 system
Win7 install vs and xampp after 80 ports conflict processing skills
In the depth technology win7 system, ie10 can not be opened how to do