Estoy intentando utilizar un archivo por lotes con wget para descargar el archivo de la FCC pública de aquíWGET 401 no autorizado
http://wireless.fcc.gov/uls/data/complete/l_micro.zip
Cuando inicialmente ejecutar el archivo por lotes con los parámetros
wget --server-response -owget.log http://wireless.fcc.gov/uls/data/complete/l_micro.zip
Falla con un error HTTP 401 no autorizado. Puedo volver a intentarlo en este momento y sigue fallando. Sin embargo, noté que si abría IE, comenzaba una descarga y cancelaba cuando se me solicitaba que lo guardara, ¡puedo volver a ejecutar el archivo por lotes y se ejecuta perfectamente!
aquí está mi respuesta del servidor detallada del registro de
--2012-02-06 14:32:24-- http://wireless.fcc.gov/uls/data/complete/l_micro.zip
Resolving wireless.fcc.gov (wireless.fcc.gov)... 192.104.54.158
Connecting to wireless.fcc.gov (wireless.fcc.gov)|192.104.54.158|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 302 Found
Location: REMOVED - appears to have my IP
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Connection: close
Content-Length: 513
Location: REMOVED [following]
--2012-02-06 14:32:24-- REMOVED
Resolving REMOVED... 192.168.2.11
Connecting to REMOVED|192.168.2.11|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 401 Unauthorized
Cache-Control: no-cache
Pragma: no-cache
WWW-Authenticate: NTLM
WWW-Authenticate: BASIC realm="AD_BCAAA"
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Set-Cookie: BCSI-CS-8ECFB6B4AA642EF0=2; Path=/
Connection: close
Content-Length: 575
Authorization failed.
Aquí está el registro después de hacer mi pequeña procedimiento de IE y conseguir que funcione
--2012-02-08 15:52:43-- http://wireless.fcc.gov/uls/data/complete/l_micro.zip
Resolving wireless.fcc.gov (wireless.fcc.gov)... 192.104.54.158
Connecting to wireless.fcc.gov (wireless.fcc.gov)|192.104.54.158|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: Sun-Java-System-Web-Server/7.0
Date: Fri, 27 Jan 2012 18:37:51 GMT
Content-type: application/zip
Last-modified: Sun, 22 Jan 2012 11:18:09 GMT
Etag: "46fa95c-4f1bf071"
Accept-ranges: bytes
Content-length: 74426716
Connection: Keep-Alive
Age: 1045014
Length: 74426716 (71M) [application/zip]
Saving to: `l_micro.zip'
Cualquier ayuda se agradece!
Tu comando funciona sin problemas para mí ... – jglouie
Intenté 'wget http: // wireless.fcc.gov/uls/data/complete/l_micro.zip' y obtuve un archivo' l_micro.zip' de '74693506' bytes con sha1sum de '1f8393bf6231bfa9689ec91cab6a660244f35605'. –
¿Tiene un proxy transparente en su red? ¿Puedes ejecutar wireshark o violinista en tu sesión IE para ver qué está haciendo diferente? –