ศิษย์น้อยฝึกวิชา
Sex :  Post : 194 สมาชิกลำดับที่ : 2758 |
|
ตัวอย่าง การใช้ wget ผ่าน proxy authen
1. #wgethttp://us3.samba.org/samba/ftp/samba4/samba-4.0.0alpha5.tar.gz
--2008-08-27 12:44:38-- http://us3.samba.org/samba/ftp/samba4/samba-4.0.0alpha5.tar.gz
Connecting to 10.0.1.91:3128... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
2008-08-27 12:44:38 ERROR 407: Proxy Authentication Required.
2. #man wget
...
...
...
--proxy-user=user
--proxy-password=password
Specify the username user and password password for authentication
on a proxy server. Wget will encode them using the "basic" authen-
tication scheme.
Security considerations similar to those with --http-password per-
tain here as well.
...
...
...
3. #wget --proxy-user=user5 --proxy-password=pass5http://us3.samba.org/samba/ftp/samba4/samba-4.0.0alpha5.tar.gz
--2008-08-27 12:46:53-- http://us3.samba.org/samba/ftp/samba4/samba-4.0.0alpha5.tar.gz
Connecting to 10.0.1.91:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 9949674 (9.5M) [application/x-tar]
Saving to: `samba-4.0.0alpha5.tar.gz'
100%[====================================================================================================>] 9,949,674 9.00K/s in 18m 38s
2008-08-27 13:05:32 (8.69 KB/s) - `samba-4.0.0alpha5.tar.gz' saved [9949674/9949674]
4. #wget --proxy-user=user5 --proxy-password=pass5http://us3.samba.org/samba/ftp/samba4/samba-4.0.0alpha5.tar.asc
--2008-08-27 13:06:23-- http://us3.samba.org/samba/ftp/samba4/samba-4.0.0alpha5.tar.asc
Connecting to 10.0.1.91:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 189 [text/plain]
Saving to: `samba-4.0.0alpha5.tar.asc'
100%[====================================================================================================>] 189 --.-K/s in 0s
2008-08-27 13:06:23 (5.51 MB/s) - `samba-4.0.0alpha5.tar.asc' saved [189/189]
5. #ll samba-4*
-rw-r--r-- 1 root wheel 189 Jun 30 18:19 samba-4.0.0alpha5.tar.asc
-rw-r--r-- 1 root wheel 9949674 Jun 30 18:19 samba-4.0.0alpha5.tar.gz
|
|