files-r/--remote-time Preserve remote file time when generating files locally--retry --retry-delay --retry-max-time -s/--show-error Display Error--SOCKS4 --SOCKS5 -t/--telnet-option --trace --trace-ascii Add time stamp when--trace-time trace/verbose output--url -u/--proxy-user -v/--version displaying version information-x/--request -y/--speed-time the time required to abandon the speed limit. Default is 30-y/--speed-limit Stop transmission speed limit, speed time ' s-z/--time-cond Transfer Time
Web site cookie information# Save cookies from the website to the sugarcookies file 2 curl-d sugarcookies http://localhost/sugarcrm/index.php# Use last saved cookie information 5 curl-b sugarcookies http://localhost/sugarcrm/index.php Passing Request dataDefault curl uses Get method to request data, in this way directly through the URL to pass the data can b
site cookie information# Save cookies from the website to the sugarcookies file 2 curl-d sugarcookies http://localhost/sugarcrm/index.php# Use last saved cookie information 5 curl-b sugarcookies http://localhost/sugarcrm/index.php Passing Request dataDefault curl uses Get method to request data, in this way directly through the URL to pass the data can be sp
collationSave and use the site Cookies Information1 # Save cookies from the website to the Sugarcookies file2 Curl-dsugarcookies http://localhost/sugarcrm/index.php34 # Use Last saved cookie information5 Curl-bsugarcookies http://localhost/sugarcrm/index.phpPassing Request dataDefault curl uses Get method to request data, in this way directly through the URL to
file 2 curl-d sugarcookies http://localhost/sugarcrm/index.php# Use last saved cookie information 5 curl-b sugarcookies http://localhost/sugarcrm/index.php Passing Request dataDefault curl uses Get method to request data, in this way directly through the URL to pass the dataYou can use the--data/-d method to specify that data is passed by post1# get2
Commands commonly used in shell scripts: wget, Curl, SS, Lsof, Nmap, NC, netstat, telnetLab Environment Description:(1) The port used by the remote Nginx Server Ip:192.169.5.136,nginx service is 80;(2) ip:192.169.5.121 of local CeshijiCommon commands on server local monitoring service ports: Netstat, SS, Lsof (for short, three ' S ')Examples of options for common
1 Get Return code: (only)[[email protected] zabbix_agentd.conf.d]# curl-s--connect-timeout 20-w "%{http_code}"-o/dev/null www.baidu.com200[[email protected] zabbix_agentd.conf.d]#Detailed parametersCurl-S -s/--silentSilent or Quiet mode.Don ' t show progress meter or error messages. Makes Curl mute.-I.-W-w/--write-out variables is specified as%{variable_name}-O -o/--output 2 Return header informationCurl-i
The curl and wget commands are tools under Linux that can be used to download files.First, wgetExample 1:wget Http://www.minjieren.com/wordpress-3.1-zh_CN.zipThe download file is saved to the current directory, and the file name defaults to the last/subsequent content of the URL, this is Wordpress-3.1-zh_cn.zipExample 2:Wget-o myfile Http://www.minjieren.com/wordpress-3.1-zh_CN.zipWith the-o parameter, you
-o/--output writes the output to the file-o/--remote-name writes the output to the file, preserving the file name of the remote-p/--proxytunnel using an HTTP proxy--proxy-anyauth Select either proxy authentication method--proxy-basic using Basic authentication on the agent--proxy-digest using digital authentication on the proxy--PROXY-NTLM using NTLM authentication on the agent-p/--ftp-port instead of PASV-q/--quote -r/--range --range-file Read (SSL) random files-r/--remote-time Preserve remote
Common parametersThere are many parameters to the Curl command, and here are just a list of those I used, especially in shell scripts.The-v/--verbose lowercase v parameter, which is especially useful in debugging scripts, is used to print more information, including sent request information.-m/--max-time -h/--header -s/--slient reduce the output of information, such as progress--connect-timeout -x/--proxy -t/--upload-file -o/--output -d/--data/--data-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.