wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | Unimplemented option '--ignore-length' (#439)


From: Archit Pandey
Subject: Re: [Wget-dev] wget2 | Unimplemented option '--ignore-length' (#439)
Date: Thu, 24 Oct 2019 14:53:17 +0000



Archit Pandey commented:


Not sure whether MHD corrects the wrong values, notice the log here contains 
`Content-Length: 130` and `Content-Length: 80`

```
Removed test directory '../.test_27638'
cmd=/home/student/sources/wget2/tests/../src/wget2_noinstall -d --no-config 
--no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy --timeout 10  
"http://localhost:35245/index.html"; "http://localhost:35245/second.html"; 2>&1

  Testing '/home/student/sources/wget2/tests/../src/wget2_noinstall -d 
--no-config --no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy 
--timeout 10  "http://localhost:35245/index.html"; 
"http://localhost:35245/second.html"; 2>&1'
24.191012.275 name=config value=--no-local-db invert=1
24.191012.275 Expanded value = (null)
24.191012.275 name=local-db value=--max-threads=1 invert=1
24.191012.275 name=max-threads value=1 invert=0
24.191012.275 name=prefer-family value=ipv4 invert=0
24.191012.275 name=proxy value=--timeout invert=1
24.191012.275 name=timeout value=10 invert=0
24.191012.275 name=config value=--no-local-db invert=1
24.191012.275 Expanded value = (null)
24.191012.275 name=local-db value=--max-threads=1 invert=1
24.191012.275 name=max-threads value=1 invert=0
24.191012.275 name=prefer-family value=ipv4 invert=0
24.191012.275 name=proxy value=--timeout invert=1
24.191012.275 name=timeout value=10 invert=0
24.191012.275 Local URI encoding = 'ANSI_X3.4-1968'
24.191012.275 Input URI encoding = 'ANSI_X3.4-1968'
24.191012.275 set_exit_status(0)
24.191012.275 *url =
24.191012.275 *3 http://localhost:35245/index.html
24.191012.275 transcoded 10 bytes from 'utf-8' to 'ANSI_X3.4-1968'
24.191012.275 local filename = 'index.html'
24.191012.275 host_add_job: job fname index.html
24.191012.275 host_add_job: 0x5653e8e54dd0 http://localhost:35245/index.html
24.191012.275 host_add_job: qsize 1 host-qsize=1
24.191012.275 *url =
24.191012.275 *3 http://localhost:35245/second.html
24.191012.275 transcoded 11 bytes from 'utf-8' to 'ANSI_X3.4-1968'
24.191012.275 local filename = 'second.html'
24.191012.275 host_add_job: job fname second.html
24.191012.275 host_add_job: 0x5653e8e550e0 http://localhost:35245/second.html
24.191012.275 host_add_job: qsize 2 host-qsize=2
24.191012.275 queue_size: qsize=2
24.191012.275 queue_size: qsize=2
24.191012.276 [0] action=1 pending=0 host=0x0
24.191012.276 dequeue job http://localhost:35245/index.html
24.191012.276 resolving localhost:35245...
24.191012.276 has 127.0.0.1:35245
24.191012.276 has ::1:35245
24.191012.276 trying 127.0.0.1:35245...
24.191012.276 established connection localhost
24.191012.277 # sent 216 bytes:
GET /index.html HTTP/1.1
Host: localhost
Accept-Encoding: gzip, deflate, xz, lzma, zstd
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.2
Connection: keep-alive

24.191012.277 [0] action=2 pending=1 host=0x5653e8e54d80
24.191012.277 ### req 0x7fb7b0001e90 pending requests = 1
24.191012.277 # got header 154 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Server: Libmicrohttpd/00095900
Content-Length: 130
Content-Type: text/html
Date: Thu, 24 Oct 2019 13:40:12 GMT

24.191012.277 method 2
Just got 118 of 130 bytes
24.191022.288 keep_alive=1
24.191022.288 _host_remove_job: 0x5653e8e54dd0
24.191022.288 host_remove_job: qsize=1 host->qsize=1
24.191022.288 [0] action=1 pending=0 host=0x5653e8e54d80
24.191022.288 dequeue job http://localhost:35245/second.html
24.191022.288 reuse connection localhost
24.191022.288 # sent 217 bytes:
GET /second.html HTTP/1.1
Host: localhost
Accept-Encoding: gzip, deflate, xz, lzma, zstd
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.2
Connection: keep-alive

24.191022.288 main: wake up
24.191022.288 [0] action=2 pending=1 host=0x5653e8e54d80
24.191022.288 ### req 0x7fb7b001cb70 pending requests = 1
24.191022.288 # got header 153 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Server: Libmicrohttpd/00095900
Content-Length: 80
Content-Type: text/html
Date: Thu, 24 Oct 2019 13:40:22 GMT

24.191022.289 method 2
Body too large: 84 instead of 80 bytes
24.191022.289 keep_alive=1
24.191022.289 _host_remove_job: 0x5653e8e550e0
24.191022.289 host_remove_job: qsize=0 host->qsize=0
24.191022.289 [0] action=1 pending=0 host=0x5653e8e54d80
24.191022.289 closing connection
24.191022.289 [0] action=1 pending=0 host=0x0
24.191022.289 main: wake up
24.191022.289 main: done
24.191022.289 blacklist http://localhost:35245/index.html
24.191022.289 blacklist http://localhost:35245/second.html
[0] Downloading 'http://localhost:35245/index.html' ...
Saving 'index.html'
HTTP response 200 OK [http://localhost:35245/index.html]
[0] Downloading 'http://localhost:35245/second.html' ...
Saving 'second.html'
HTTP response 200 OK [http://localhost:35245/second.html]
Entering .
 - ./second.html
search second.html
 - ./index.html
search index.html
Removed test directory '.test_27638'
PASS test-ignore-length (exit status: 0)

```

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/issues/439#note_235125330
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]