Faire un wget sous windows avec un proxy d'entreprise

Utilisation de wget avec un proxy pour télécharger des fichiers sur un site internet en entreprise.
Les postes bureautique étant généralement des windows.
Tester que vous l'accès à votre proxy.


C:\ftu\eclipse\plugins>ping proxyentreprise

Envoi d'une requête 'ping' sur proxyentreprise.fr.net.job [10.255.133.28] avec 32 octets de données :
Réponse de 10.255.133.28 : octets=32 temps=1 ms TTL=249
Réponse de 10.255.133.28 : octets=32 temps=1 ms TTL=249

Statistiques Ping pour 10.255.133.28:
    Paquets : envoyés = 2, reçus = 2, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
    Minimum = 1ms, Maximum = 1ms, Moyenne = 1ms
Ctrl+C
^C

C:\ftu\eclipse\plugins>set HTTP_PROXY=http://proxyentreprise:8080

Faite un test de connection
c:\>cd ftu

c:\ftu>set HTTP_PROXY=http://proxyentreprise:8080

c:\ftu>wget --proxy-user=ftu --proxy-password=Password_de_Ouf_17 http://www.babynounou.fr
--11:26:20--  http://www.babynounou.fr/
           => `index.html'
Resolving proxyentreprise... 10.255.133.28
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 29á869 (29K) [text/html]

100%[========================================================>] 29á869        --.--K/s

11:26:21 (88.94 MB/s) - `index.html' saved [29869/29869]


c:\ftu>
Afin de prendre plusieurs fichiers utiliser l'option -r
 
C:\ftu\eclipse\plugins>wget --proxy-user=ftu --proxy-password=Password_de_Ouf_17 http://public.dhe.ibm.com
/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plugins/ -r
--11:03:05--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/index.html'
Resolving proxyentreprise... 10.255.133.28
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 28á593 (28K) [text/html]

100%[========================================================>] 28á593        --.--K/s

11:03:06 (35.72 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wde
update/plugins/index.html' saved [28593/28593]

Loading robots.txt; please ignore errors.
--11:03:06--  http://public.dhe.ibm.com/robots.txt
           => `public.dhe.ibm.com/robots.txt'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
11:03:06 ERROR 404: Not Found.

--11:03:06--  http://public.dhe.ibm.com/icons/blank.gif
           => `public.dhe.ibm.com/icons/blank.gif'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 148 [image/gif]

100%[========================================================>] 148           --.--K/s

11:03:06 (4.92 MB/s) - `public.dhe.ibm.com/icons/blank.gif' saved [148/148]

--11:03:06--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/?C=N;O=D
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/index.html@C=N;O=D'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 28á593 (28K) [text/html]

100%[========================================================>] 28á593        --.--K/s

11:03:06 (6.17 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeu
pdate/plugins/index.html@C=N;O=D' saved [28593/28593]

--11:03:06--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/?C=M;O=A
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/index.html@C=M;O=A'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 28á593 (28K) [text/html]

100%[========================================================>] 28á593        --.--K/s

11:03:06 (58.55 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wde
update/plugins/index.html@C=M;O=A' saved [28593/28593]

--11:03:06--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/?C=S;O=A
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/index.html@C=S;O=A'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 28á593 (28K) [text/html]

100%[========================================================>] 28á593        --.--K/s

11:03:06 (7.54 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeu
pdate/plugins/index.html@C=S;O=A' saved [28593/28593]

--11:03:06--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/?C=D;O=A
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/index.html@C=D;O=A'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 28á593 (28K) [text/html]

100%[========================================================>] 28á593        --.--K/s

11:03:06 (25.31 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wde
update/plugins/index.html@C=D;O=A' saved [28593/28593]

--11:03:06--  http://public.dhe.ibm.com/icons/back.gif
           => `public.dhe.ibm.com/icons/back.gif'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 216 [image/gif]

100%[========================================================>] 216           --.--K/s

11:03:06 (6.54 MB/s) - `public.dhe.ibm.com/icons/back.gif' saved [216/216]

--11:03:06--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/ind
ex.html'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1á183 (1.2K) [text/html]

100%[========================================================>] 1á183         --.--K/s

11:03:06 (23.27 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wde
update/index.html' saved [1183/1183]

--11:03:06--  http://public.dhe.ibm.com/icons/unknown.gif
           => `public.dhe.ibm.com/icons/unknown.gif'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 245 [image/gif]

100%[========================================================>] 245           --.--K/s

11:03:06 (4.23 MB/s) - `public.dhe.ibm.com/icons/unknown.gif' saved [245/245]

--11:03:06--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/com.ibm.etools.attrview_1.0.100.v20120918_0208.jar
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/com.ibm.etools.attrview_1.0.100.v20120918_0208.jar'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 214á062 (209K) [text/plain]

100%[========================================================>] 214á062       --.--K/s

11:03:12 (14.50 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wde
update/plugins/com.ibm.etools.attrview_1.0.100.v20120918_0208.jar' saved [214062/214062]

--11:03:12--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/com.ibm.etools.common.migration.ui_1.0.201.v20120918_0238.jar
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/com.ibm.etools.common.migration.ui_1.0.201.v20120918_0238.jar'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 100á498 (98K) [text/plain]

100%[========================================================>] 100á498       --.--K/s

11:03:14 (9.28 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeu
pdate/plugins/com.ibm.etools.common.migration.ui_1.0.201.v20120918_0238.jar' saved [100498/100498]

--11:03:14--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/com.ibm.etools.common.migration_1.0.300.v20121016_1236.jar
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/com.ibm.etools.common.migration_1.0.300.v20121016_1236.jar'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 84á464 (82K) [text/plain]

100%[========================================================>] 84á464        --.--K/s

11:03:15 (3.36 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeu
pdate/plugins/com.ibm.etools.common.migration_1.0.300.v20121016_1236.jar' saved [84464/84464]

--11:03:15--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/com.ibm.etools.deviceprofile_7.2.100.v20130222_1636.jar
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/com.ibm.etools.deviceprofile_7.2.100.v20130222_1636.jar'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 154á943 (151K) [text/plain]

100%[========================================================>] 154á943       --.--K/s

11:03:18 (8.26 MB/s) - `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeu
pdate/plugins/com.ibm.etools.deviceprofile_7.2.100.v20130222_1636.jar' saved [154943/154943]

--11:03:18--  http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupda
te/plugins/com.ibm.etools.ftp.core_1.0.100.v20120918_0208.jar
           => `public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/plu
gins/com.ibm.etools.ftp.core_1.0.100.v20120918_0208.jar'
Connecting to proxyentreprise|10.255.133.28|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 54á223 (53K) [text/plain]

100%[========================================================>] 54á223        --.--K/s

Voici une capture d'écran du wget sous windows
wget windows