[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget | wget fails if i use -a option to log (#12)
From: |
wbtcpip2 (@wbtcpip2) |
Subject: |
Re: wget | wget fails if i use -a option to log (#12) |
Date: |
Fri, 01 Jul 2022 17:32:38 +0000 |
wbtcpip2 commented:
i just remarked that the problem occur when i use -o or -a at the same time
with --user and --password
some examples that you can try
`wget -a mylog.txt --user=radio --password=radio2022
http://80.17.62.42/Downloader/Linea3/22_07_01_linea3_edizione1245.mp3`
this download a broken file ... but the log is wrote:
```
--2022-07-01 19:23:27--
http://80.17.62.42/Downloader/Linea3/22_07_01_linea3_edizione1245.mp3
Connecting to 80.17.62.42:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="uploaded by area"
Reusing existing connection to 80.17.62.42:80.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: '22_07_01_linea3_edizione1245.mp3.1'
0K .. 76,4M=0s
```
now the same commands without the log option download correctly:
`wget --user=radio --password=radio2022
http://80.17.62.42/Downloader/Linea3/22_07_01_linea3_edizione1245.mp3`
correctly download the file and this is what i get in the command line
```
wget --user=radio --password=radio2022
http://80.17.62.42/Downloader/Linea3/22_07_01_linea3_edizione1245.mp3
--2022-07-01 19:27:59--
http://80.17.62.42/Downloader/Linea3/22_07_01_linea3_edizione1245.mp3
Connecting to 80.17.62.42:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="uploaded by area"
Connecting to 80.17.62.42:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3454849 (3,3M) [application/octet-stream]
Saving to: '22_07_01_linea3_edizione1245.mp3.4'
22_07_01_linea3_edizione1245.
100%[=================================================>] 3,29M 859KB/s
in 4,8s
```
so only if i use -a or -o the download fails.
i think the problem is here:
```
Reusing existing connection to 80.17.62.42:80.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
```
if i do not use -a or -o it use a second connection and all works fine
```
Connecting to 80.17.62.42:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3454849 (3,3M) [application/octet-stream]
```
if you test by yourself be aware you must change the date in the url as it is a
constantly updated url and only work after 11:45 gmt
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget/-/issues/12#note_1013675887
You're receiving this email because of your account on gitlab.com.