Sto cercando di utilizzare un file batch con wget per scaricare il file pubblico FCC da quiWGET 401 non autorizzato
http://wireless.fcc.gov/uls/data/complete/l_micro.zip
Quando intially eseguire il file batch con i parametri
wget --server-response -owget.log http://wireless.fcc.gov/uls/data/complete/l_micro.zip
Non riesce con un errore non autorizzato HTTP 401. Posso riprovare a questo punto e continua a non riuscire. Tuttavia ho notato che se apro IE, avvio un download e annullo quando viene richiesto di salvare, riesco a rieseguire il file batch e si esegue perfettamente!
Qui è la mia risposta del server dettagliata dal registro
--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.
Ecco il registro dopo aver fatto la mia piccola procedura di IE e farla funzionare
--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'
Ogni aiuto è apprezzato!
Il tuo comando funziona perfettamente per me ... – jglouie
Ho tentato 'wget http: // wireless.fcc.gov/uls/data/complete/l_micro.zip' e ho ottenuto un file' l_micro.zip' di '74693506' byte con sha1sum di '1f8393bf6231bfa9689ec91cab6a660244f35605'. –
Hai un proxy trasparente sulla tua rete? Puoi eseguire wireshark o Fiddler nella tua sessione di IE per vedere cosa sta facendo in modo diverso? –