Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÏÂcurlÃüÁîÏê½â


CurlÊÇLinuxÏÂÒ»¸öºÜÇ¿´óµÄhttpÃüÁîÐй¤¾ß£¬Æ书ÄÜÊ®·ÖÇ¿´ó¡£
1) ¶þ»°²»Ëµ£¬ÏÈ´ÓÕâÀ↑ʼ°É£¡
$ curl http://www.linuxidc.com
»Ø³µÖ®ºó£¬www.linuxidc.com µÄhtml¾ÍÏ¡ÀﻩÀ²µØÏÔʾÔÚÆÁÄ»ÉÏÁË    ~
2) àÅ£¬ÒªÏë°Ñ¶Á¹ýÀ´Ò³Ãæ´æÏÂÀ´£¬ÊDz»ÊÇÒªÕâÑùÄØ£¿


$ curl http://www.linuxidc.com > page.html
µ±È»¿ÉÒÔ£¬µ«²»ÓÃÕâôÂé·³µÄ£¡
ÓÃcurlµÄÄÚÖÃoption¾ÍºÃ£¬´æÏÂhttpµÄ½á¹û
£¬
ÓÃÕâ¸öoption: -o
$ curl -o page.html http://www.linuxidc.com
ÕâÑù£¬Äã¾Í¿ÉÒÔ¿´µ½ÆÁÄ»ÉϳöÏÖÒ»¸öÏÂÔØÒ³Ãæ½ø¶Èָʾ¡£µÈ½øÕ¹µ½100%£¬×ÔÈ»¾Í OK¿©
3) ʲôʲô£¿£¡·ÃÎʲ»µ½£¿¿Ï¶¨ÊÇÄãµÄproxyûÓÐÉ趨ÁË¡£
ʹÓÃcurlµÄʱºò£¬ÓÃÕâ¸öoption¿ÉÒÔÖ¸¶¨http·ÃÎÊËùʹÓõÄproxy·þÎñÆ÷¼°Æä¶Ë¿Ú£º -x
$ curl -x 123.45.67.89:1080 -o page.html http://www.linuxidc.com
4) ·ÃÎÊÓÐЩÍøÕ¾µÄʱºò±È½ÏÌÖÑᣬËûʹÓÃcookieÀ´¼Ç¼sessionÐÅÏ¢¡£
ÏñIE/NNÕâÑùµÄä¯ÀÀÆ÷£¬µ±È»¿ÉÒÔÇáÒ×´¦ÀícookieÐÅÏ¢£¬µ«ÎÒÃǵÄcurlÄØ£¿.....
ÎÒÃÇÀ´Ñ§Ï°Õâ¸öoption: -D <— Õâ¸öÊÇ°ÑhttpµÄresponseÀïÃæµÄcookieÐÅÏ¢´æµ½Ò»¸öÌرðµÄÎļþÖÐÈ¥
$ curl -x 123.45.67.89:1080 -o page.html -D cookie0001.txt
http://www.linuxidc.com
ÕâÑù£¬µ±Ò³Ãæ±»´æµ½page.htmlµÄͬʱ£¬cookieÐÅÏ¢Ò²±»´æµ½ÁËcookie0001.txtÀïÃæÁË
5£©ÄÇô£¬ÏÂÒ»´Î·ÃÎʵÄʱºò£¬ÈçºÎ¼ÌÐøʹÓÃÉÏ´ÎÁôϵÄcookieÐÅÏ¢ÄØ£¿ÒªÖªµÀ£¬ºÜ¶àÍøÕ¾¶¼ÊÇ¿¿¼àÊÓÄãµÄcookieÐÅÏ¢£¬À´ÅжÏÄãÊDz»ÊDz»°´¹æ
¾Ø·ÃÎÊËûÃǵÄÍøÕ¾µÄ¡£
Õâ´ÎÎÒÃÇʹÓÃÕâ¸öoptionÀ´°ÑÉϴεÄcookieÐÅÏ¢×·¼Óµ½http requestÀïÃæÈ¥£º -b
$ curl -x 123.45.67.89:1080 -o page1.html -D cookie0002.txt -b
cookie0001.txt http://www.linuxidc.com
ÕâÑù£¬ÎÒÃǾͿÉÒÔ¼¸ºõÄ£ÄâËùÓеÄIE²Ù×÷£¬È¥·ÃÎÊÍøÒ³ÁË£¡
6£©ÉÔ΢µÈµÈ    ~ÎÒºÃÏñÍü¼ÇʲôÁË    ~
¶ÔÁË£¡ÊÇä¯ÀÀÆ÷ÐÅÏ¢
ÓÐЩÌÖÑáµÄÍøÕ¾×ÜÒªÎÒÃÇʹÓÃijЩÌض¨µÄä¯ÀÀÆ÷È¥·ÃÎÊËûÃÇ£¬ÓÐʱºò¸ü¹ý·ÖµÄÊÇ£¬»¹ÒªÊ¹ÓÃijЩÌض¨µÄ°æ±¾    
NND£¬ÄÄÀïÓÐʱ¼äΪÁËËüÈ¥ÕÒÕâЩ¹ÖÒìµÄä¯ÀÀÆ÷ÄØ£¡£¿
ºÃÔÚcurl¸øÎÒÃÇÌṩÁËÒ»¸öÓÐÓõÄoption£¬¿ÉÒÔÈÃÎÒÃÇËæÒâÖ¸¶¨×Ô¼ºÕâ´Î·ÃÎÊËùÐû³ÆµÄ×Ô¼ºµÄä¯ÀÀÆ÷ÐÅÏ¢£º -A
$ curl -A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" -x
123.45.67.89:1080 -o page.html -D cookie0001


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

LinuxµÄ¼Æ»®ÈÎÎñatÃüÁî

Technorati ±êÇ©: linux,at Ãû³Æ : at
ʹÓÃȨÏÞ : ËùÓÐʹÓÃÕß
ʹÓ÷½Ê½ : at -V [-q queue] [-f file] [-mldbv] TIME
˵Ã÷ : at ¿ÉÒÔÈÃʹÓÃÕßÖ¸¶¨ÔÚ TIME Õâ¸öÌض¨Ê±¿ÌÖ´ÐÐij¸ö³Ìʽ»òÖ¸ÁTIME µÄ¸ñʽÊÇ HH:MMÆäÖÐµÄ HH ΪСʱ£¬MM Ϊ·ÖÖÓ£¬ÉõÖÁÄãÒ²¿ÉÒÔÖ¸¶¨ am, pm, midnight, noon, teatime(¾ÍÊÇÏÂÎç 4 µãïñ ......

Linuxѧϰ²½Ö裨ת£©

1¡¢Linux »ù´¡
°²×°Linux²Ù×÷ϵͳ LinuxÎļþϵͳ Linux³£ÓÃÃüÁî LinuxÆô¶¯¹ý³ÌÏê½â ÊìϤLinux·þÎñÄܹ»¶ÀÁ¢°²×°Linux²Ù×÷ϵͳ Äܹ»ÊìÁ·Ê¹ÓÃLinuxϵͳµÄ»ù±¾ÃüÁî ÈÏʶLinuxϵͳµÄ³£Ó÷þÎñ°²×°Linux²Ù×÷ϵͳ Linux»ù±¾ÃüÁîʵ¼ù ÉèÖÃLinux»·¾³±äÁ¿ ¶¨ÖÆLinuxµÄ·þÎñ Shell ±à³Ì»ù´¡Ê¹ÓÃvi±à¼­Îļþ ʹÓÃEmacs±à¼­Îļþ ʹÓÃÆäËû±à ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ