curl -I http://www.sina.com.cn/ -H Accept-Encoding:gzip,defalte
2¡¢¼à¿ØÍøÒ³µÄÏìӦʱ¼ä
curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http://www.it300.com"
3. ¼à¿ØÕ¾µã¿ÉÓÃÐÔ
curl -o /dev/null -s -w %{http_code} "http://www.it300.com"
4¡¢ÒÔhttp1.0ÐÒéÇëÇó£¨Ä¬ÈÏΪhttp1.1£©
curl -0 ..............
¼à¿ØÕ¾µãÊ×Ò³ÏÂÔØʱ¼ä£º
curl -o /dev/null -s -w ¡®%{time_total}¡¯ http://www.it300.com
curl -o /dev/null -s -w ¡®%{http_code}¡¯ http://www.it300.com
curl -o /dev/null -s -w %{http_code}:%{time_connect}:%{time_starttransfer}:%{time_total} http://www.it300.com
½á¹û£º2.547
-s ¾²Ä¬Êä³ö£»Ã»ÓÐ-sµÄ»°¾ÍÊÇÏÂÃæµÄÇé¿ö£¬ÕâÊÇÔڽű¾µÈÇé¿öϲ»ÐèÒªµÄÐÅÏ¢¡£
¼à¿ØÊ×Ò³¸÷Ïîʱ¼äÖ¸±ê£º
curl -o /dev/null -s -w ¡®%{time_connect}:%{time_starttransfer}:%{time_total}¡¯ http://www.it300.com
½á¹û£º 0.244: 1.044: 2.672
ʱ¼äÖ¸±ê½âÊÍ £º
time_connect ½¨Á¢µ½·þÎñÆ÷µÄ TCP Á¬½ÓËùÓõÄʱ¼ä
time_starttransfer ÔÚ·¢³öÇëÇóÖ®ºó£¬Web ·þÎñÆ÷·µ»ØÊý¾ÝµÄµÚÒ»¸ö×Ö½ÚËùÓõÄʱ¼ä
time_total Íê³ÉÇëÇóËùÓõÄʱ¼ä
ÔÚ ·¢³öÇëÇóÖ®ºó£¬Web ·þÎñÆ÷´¦ÀíÇëÇ󲢿ªÊ¼·¢»ØÊý¾ÝËùÓõÄʱ¼äÊÇ
£¨time_starttransfer£©1.044 - £¨time_connect£©0.244 = 0.8 Ãë
¿Í»§»ú´Ó·þÎñÆ÷ÏÂÔØÊý¾ÝËùÓõÄʱ¼äÊÇ
£¨time_total£©2.672 - £¨time_starttransfer£©1.044 = 1.682 Ãë
Ö¸¶¨Ìض¨Ö÷»úIPµØÖ··ÃÎÊÍøÕ¾
curl -x 61.135.169.105:80 http://www.baidu.com
curl -x 61.135.169.125:80 http://www.baidu.com
curlÓ÷¨´óÈ«
-x Ö¸¶¨·ÃÎÊIPÓë¶Ë¿ÚºÅ
curl -x 192.168.1.1:80 http://www.miotour.com
-I ½ö½öÈ¡ÎļþµÄhttpÍ·²¿
curl -I -x 192.168.1.1:80 http://www.it300.com
ÓÃreferer×öµÄ·ÀµÁÁ´£¬¾Í¿ÉÒÔʹÓÃ-eÀ´ÉèÖÃ
curl -e ¡°http://www.qiecuo.org¡± http:// www.it300.com -v -I
-HÈ¥¹¹ÔìÄãÏëÒªµÄhttpÍ·²¿
curl -H ¡°X-Forward-For:8.8.8.8¡å http://www.it300.com -v -I
curl·´À¡Ê±¼ä£¬ÀýÈçÁ¬½Óʱ¼ä£¬ÏÂÔØʱ¼äµÈÐÅÏ¢
curl -w %{time_connect}:%{time_starttransfer}:%{time_total} -s -o /dev/null
½«Ò»¸öÎļþ±£´æµ½Ó²ÅÌÉÏ£¬ÃüÃûΪfile.html
curl -o file.html http://www.it300.com/index.html
ÏÂÔØindex.htmlÎļþ£¬ -OÊÇ´óдµÄ×Öĸ
curl -O http://www.it300.com/index.html
curlÌá½»Óû§ÃûºÍÃÜÂë
curl http://name:passwd@www.it300.com
curl -u name:passwd http://www.it300.com
-b ¡°cookie¡± ´Ë²ÎÊýÓÃÀ´¹¹ÔìÒ»¸öЯ´øcookieµÄÇëÇó
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ