garbage incomprehensible characters in debug output
So this has been bugging me for quite some time now.
$ rm -rf ~/.wget-*
$ wget2 -d https://rootkea.me
25.171027.627 Local URI encoding = 'UTF-8'
25.171027.627 Input URI encoding = 'UTF-8'
25.171027.627 Fetched HSTS data from '/home/rootkea/.wget-hsts'
25.171027.627 Fetched HPKP data from '/home/rootkea/.wget-hpkp'
25.171027.627 Fetched TLS session data from '/home/rootkea/.wget-session'
25.171027.627 Fetched OCSP hosts from '/home/rootkea/.wget-ocsp_hosts'
25.171027.627 Fetched OCSP fingerprints from '/home/rootkea/.wget-ocsp'
25.171027.627 *url = https://rootkea.me
25.171027.628 *3 https://rootkea.me
25.171027.628 local filename = 'index.html'
25.171027.628 host_add_job: job fname index.html
25.171027.628 host_add_job: 0x2c9af70 https://rootkea.me
25.171027.628 host_add_job: qsize 1 host-qsize=1
25.171027.628 queue_size: qsize=1
25.171027.628 queue_size: qsize=1
25.171027.628 queue_size: qsize=1
25.171027.628 [0] action=1 pending=0 host=0x0
25.171027.628 qsize=1 blocked=0
25.171027.628 pause=-1503661227628
25.171027.628 dequeue job https://rootkea.me
25.171027.628 resolving rootkea.me:443...
25.171027.685 has 104.27.156.164:443
25.171027.685 has 104.27.157.164:443
25.171027.685 has 2400:cb00:2048:1::681b:9ca4:443
25.171027.685 has 2400:cb00:2048:1::681b:9da4:443
25.171027.685 Add dns cache entry rootkea.me
25.171027.686 trying 104.27.156.164:443...
25.171027.686 GnuTLS init
25.171027.720 Certificates loaded: 168
25.171027.720 GnuTLS init done
25.171027.720 TLS False Start requested
25.171027.720 ALPN offering h2
25.171027.720 ALPN offering http/1.1
25.171028.086 host has no pubkey pinnings
25.171028.086 Server certificate is valid regarding OCSP stapling
25.171028.086 add OCSP cert 5640127ae6db30a6b1fb92e179d47a0ff12e8b9bd26afa332e1ded6eca650a37 (maxage=1503664828,valid=1)
25.171028.087 resolving ocsp.comodoca4.com:80...
25.171028.094 has 178.255.83.1:80
25.171028.094 has 2a02:1788:2fd::b2ff:5301:80
25.171028.094 Add dns cache entry ocsp.comodoca4.com
25.171028.094 trying 178.255.83.1:80...
25.171028.238 # sent 292 bytes:
POST / HTTP/1.1
Host: ocsp.comodoca4.com
Accept-Encoding: identity
Accept: */*
Connection: close
Content-Type: application/ocsp-request
Content-Length: 127
0}0{0M0K0I0 +
25.171028.238 ### req 0x7fc6b4014e00 pending requests = 1
25.171028.383 # got header 384 bytes:
HTTP/1.1 200 OK
Date: Fri, 25 Aug 2017 11:40:28 GMT
Server: Apache
Last-Modified: Wed, 23 Aug 2017 10:42:46 GMT
Expires: Wed, 30 Aug 2017 10:42:46 GMT
ETag: A1776F9618D6E3B3AC9B0152F92349C271846F3A
Cache-Control: max-age=427937,public,no-transform,must-revalidate
X-OCSP-Reponder-ID: rmdccaocsp11
Content-Length: 313
Connection: close
Content-Type: application/ocsp-response
25.171028.383 method 2
25.171028.383 closing connection
25.171028.388 *** The OCSP reply did not include the requested nonce.
25.171028.388 OCSP server flags certificate not revoked as of Wed Aug 23 16:12:46 2017
25.171028.388 check_ocsp_response() returned 1
25.171028.388 Certificate[1] of 'rootkea.me' is valid (via OCSP)
25.171028.388 add OCSP cert cd6c108a0e641f2ca122aaa6d03f826759cae7c6f800eabf76dc48b67cd083ce (maxage=1503664828,valid=1)
25.171028.389 resolving ocsp.trust-provider.com:80...
25.171028.395 has 178.255.83.1:80
25.171028.395 has 2a02:1788:2fd::b2ff:5301:80
25.171028.395 Add dns cache entry ocsp.trust-provider.com
25.171028.395 trying 178.255.83.1:80...
25.171028.624 # sent 297 bytes:
POST / HTTP/1.1
Host: ocsp.trust-provider.com
Accept-Encoding: identity
Accept: */*
Connection: close
Content-Type: application/ocsp-request
Content-Length: 127
0}0{0M0K0I0 +
25.171028.624 ### req 0x7fc6b4011ab0 pending requests = 1
25.171029.344 # got header 384 bytes:
HTTP/1.1 200 OK
Date: Fri, 25 Aug 2017 11:40:29 GMT
Server: Apache
Last-Modified: Wed, 23 Aug 2017 10:42:46 GMT
Expires: Wed, 30 Aug 2017 10:42:46 GMT
ETag: CD5A7D89866FA5A448BBC944E6E03CCEA8BE1609
Cache-Control: max-age=427936,public,no-transform,must-revalidate
X-OCSP-Reponder-ID: rmdccaocsp11
Content-Length: 471
Connection: close
Content-Type: application/ocsp-response
25.171029.344 method 2
25.171029.344 closing connection
25.171029.345 *** The OCSP reply did not include the requested nonce.
25.171029.345 OCSP server flags certificate not revoked as of Wed Aug 23 16:12:46 2017
25.171029.345 check_ocsp_response() returned 1
25.171029.345 Certificate[2] of 'rootkea.me' is valid (via OCSP)
25.171029.345 add OCSP cert 9573862ac0b4b125168810ea3fd101ae2eb0bb15f61fc0e6da7a2a38b85a89e8 (maxage=1503664829,valid=1)
25.171029.345 add OCSP host rootkea.me (maxage=1503664829)
25.171029.348 TLS False Start: on
25.171029.348 ALPN: Server accepted protocol 'h2'
----
Certificate info [0]:
Valid since: Fri Aug 25 05:30:00 2017
Expires: Sun Mar 4 05:29:59 2018
Fingerprint: eea9b088aa8b96cd0afb33ad9b5ce022
Serial number: eea9b088aa8b96cd0afb33ad9b5ce022
Public key: EC/ECDSA, High (256 bits)
Version: #3
DN: OU=Domain Control Validated,OU=PositiveSSL Multi-Domain,CN=sni198949.cloudflaressl.com
Issuer's DN: C=GB,ST=Greater Manchester,L=Salford,O=COMODO CA Limited,CN=COMODO ECC Domain Validation Secure Server CA 2
Issuer's OID: 2.5.4.6
Issuer's UID: 2.5.4.6
Certificate info [1]:
Valid since: Thu Sep 25 05:30:00 2014
Expires: Tue Sep 25 05:29:59 2029
Fingerprint: 5e0e419b20ea575477f11b52e2c818e0
Serial number: 5e0e419b20ea575477f11b52e2c818e0
Public key: EC/ECDSA, High (256 bits)
Version: #3
DN: C=GB,ST=Greater Manchester,L=Salford,O=COMODO CA Limited,CN=COMODO ECC Domain Validation Secure Server CA 2
Issuer's DN: C=GB,ST=Greater Manchester,L=Salford,O=COMODO CA Limited,CN=COMODO ECC Certification Authority
Issuer's OID: 2.5.4.6
Issuer's UID: 2.5.4.6
Certificate info [2]:
Valid since: Tue May 30 16:18:38 2000
Expires: Sat May 30 16:18:38 2020
Fingerprint: c790a56c69cbaf0bf3f30a40d0a2aecc
Serial number: c790a56c69cbaf0bf3f30a40d0a2aecc
Public key: EC/ECDSA, Ultra (384 bits)
Version: #3
DN: C=GB,ST=Greater Manchester,L=Salford,O=COMODO CA Limited,CN=COMODO ECC Certification Authority
Issuer's DN: C=SE,O=AddTrust AB,OU=AddTrust External TTP Network,CN=AddTrust External CA Root
Issuer's OID: 2.5.4.6
Issuer's UID: 2.5.4.6
----
Ephemeral ECDH using curve SECP256R1
Key Exchange: ECDHE-ECDSA
Protocol: TLS1.2
Certificate Type: X.509
Compression: NULL
Cipher: NULL
MAC: MAC-NULL
----
25.171029.350 Handshake completed
25.171029.350 established connection rootkea.me
[0] Downloading 'https://rootkea.me' ...
25.171029.350 cookie_create_request_header for host=rootkea.me path=(null)
25.171029.350 HTTP2 stream id 1
25.171029.351 [0] action=1 pending=1 host=0x2c9ae00
25.171029.351 qsize=1 blocked=0
25.171029.351 pause=-1503661229351
25.171029.351 [0] action=2 pending=1 host=0x2c9ae00
25.171029.351 ## pending_requests = 1
25.171029.351 ## loop responses=0
25.171029.351 [FRAME 0] > SETTINGS
25.171029.351 [FRAME 1] > HEADERS
25.171029.351 [FRAME 1] > :method: GET
25.171029.351 [FRAME 1] > :path: /
25.171029.351 [FRAME 1] > :scheme: https
25.171029.351 [FRAME 1] > :authority: rootkea.me
25.171029.351 [FRAME 1] > accept-encoding: gzip, deflate, bzip2, xz, lzma, br
25.171029.351 [FRAME 1] > accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
25.171029.351 [FRAME 1] > user-agent: wget2/1.0.0
25.171029.351 ## loop responses=0
25.171030.180 Got delayed session data
25.171030.180 add TLS session data for rootkea.me (maxage=64800, size=4848)
25.171030.180 ## loop responses=0
25.171030.180 [FRAME 0] < SETTINGS
25.171030.180 [FRAME 0] < WINDOW_UPDATE
25.171030.180 [FRAME 0] < SETTINGS
25.171030.180 ## loop responses=0
25.171030.181 [FRAME 0] > SETTINGS
25.171030.181 ## loop responses=0
25.171030.774 :status: 200
25.171030.774 date: Fri, 25 Aug 2017 11:40:30 GMT
25.171030.774 content-type: text/html; charset=utf-8
25.171030.774 set-cookie: __cfduid=d3b8f3dde2074a9caf10dd74a45bc14551503661230; expires=Sat, 25-Aug-18 11:40:30 GMT; path=/; domain=.rootkea.me; HttpOnly
25.171030.774 last-modified: Mon, 14 Aug 2017 17:39:53 GMT
25.171030.774 access-control-allow-origin: *
25.171030.774 expires: Fri, 25 Aug 2017 11:50:30 GMT
25.171030.774 cache-control: max-age=600
25.171030.774 x-github-request-id: 5FEB:62F2:AAB911:F74D7B:59A00CAE
25.171030.774 server: cloudflare-nginx
25.171030.774 cf-ray: 393e46e00d846fd2-SIN
25.171030.775 content-encoding: gzip
25.171030.775 [FRAME 1] < HEADERS
Saving 'index.html'
25.171030.775 [FRAME 1] < DATA
25.171030.775 [FRAME 1] < DATA
25.171030.775 closing stream 1
25.171030.775 ## response status 200
HTTP response 200 [https://rootkea.me]
25.171030.775 keep_alive=1
25.171030.775 got cookie __cfduid=d3b8f3dde2074a9caf10dd74a45bc14551503661230
25.171030.775 store new cookie __cfduid=d3b8f3dde2074a9caf10dd74a45bc14551503661230
25.171030.775 host_remove_job: 0x2c9af70
25.171030.776 host_remove_job: qsize=0 host->qsize=0
25.171030.776 [0] action=1 pending=0 host=0x2c9ae00
25.171030.776 qsize=0 blocked=0
25.171030.776 pause=-1503661230776
25.171030.776 closing connection
25.171030.776 [0] action=1 pending=0 host=0x0
25.171030.776 qsize=0 blocked=0
25.171030.776 pause=-1503661230776
25.171030.779 main: wake up
25.171030.779 main: done
25.171030.780 Successfully updated '/home/rootkea/.wget-session'.
25.171030.780 Saved 1 TLS session entry into '/home/rootkea/.wget-session'
25.171030.780 Successfully updated '/home/rootkea/.wget-ocsp_hosts'.
25.171030.780 Saved OCSP hosts to '/home/rootkea/.wget-ocsp_hosts'
25.171030.781 Successfully updated '/home/rootkea/.wget-ocsp'.
25.171030.781 Saved OCSP fingerprints to '/home/rootkea/.wget-ocsp'
25.171030.781 blacklist https://rootkea.me
I'm talking about 0}0{0M0K0I0 +
these characters. Sometimes they just make me nervous about something being broken ;) And I absolutely don't think that they are any useful in debugging wget! So if possible let's get rid of them.