DEBUG output created by Wget 1.19.1.4-32e2 on linux-gnu. Reading HSTS entries from /home/thomas/.wget-hsts Enqueuing http://localhost/wget-test/ at depth 0 Queue count 1, maxcount 1. [IRI Enqueuing 'http://localhost/wget-test/' with None Dequeuing http://localhost/wget-test/ at depth 0 Queue count 0, maxcount 1. Converted file name 'localhost/wget-test/index.html' (UTF-8) -> 'localhost/wget-test/index.html' (ANSI_X3.4-1968) --2017-02-15 19:05:53-- http://localhost/wget-test/ Resolving localhost... 127.0.0.1 Caching localhost => 127.0.0.1 Connecting to localhost|127.0.0.1|:80... connected. Created socket 4. Releasing 0x0000563edad68630 (new refcount 1). ---request begin--- GET /wget-test/ HTTP/1.1 User-Agent: Wget/1.19.1.4-32e2 (linux-gnu) Accept: */* Accept-Encoding: identity Host: localhost Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 200 OK Server: nginx/1.10.2 Date: Wed, 15 Feb 2017 18:05:53 GMT Content-Type: text/html Content-Length: 245 Last-Modified: Wed, 15 Feb 2017 15:10:38 GMT Connection: keep-alive ETag: "58a46f6e-f5" Expires: Wed, 15 Feb 2017 18:05:54 GMT Cache-Control: max-age=1 Accept-Ranges: bytes ---response end--- 200 OK Registered socket 4 for persistent reuse. Length: 245 [text/html] Saving to: 'localhost/wget-test/index.html' 0K 100% 38.6M=0s 2017-02-15 19:05:53 (38.6 MB/s) - 'localhost/wget-test/index.html' saved [245/245] Loaded localhost/wget-test/index.html (size 245). localhost/wget-test/index.html: merge('http://localhost/wget-test/', 'http://localhost/wget-test/script.js?foo=bar') -> http://localhost/wget-test/script.js?foo=bar appending 'http://localhost/wget-test/script.js?foo=bar' to urlpos. localhost/wget-test/index.html: merge('http://localhost/wget-test/', 'https://localhost/wget-test/script.js?foo=bar') -> https://localhost/wget-test/script.js?foo=bar appending 'https://localhost/wget-test/script.js?foo=bar' to urlpos. no-follow in localhost/wget-test/index.html: 0 Deciding whether to enqueue "http://localhost/wget-test/script.js?foo=bar". Loading robots.txt; please ignore errors. Converted file name 'localhost/robots.txt' (UTF-8) -> 'localhost/robots.txt' (ANSI_X3.4-1968) --2017-02-15 19:05:53-- http://localhost/robots.txt Reusing existing connection to localhost:80. Reusing fd 4. ---request begin--- GET /robots.txt HTTP/1.1 User-Agent: Wget/1.19.1.4-32e2 (linux-gnu) Accept: */* Accept-Encoding: identity Host: localhost Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 404 Not Found Server: nginx/1.10.2 Date: Wed, 15 Feb 2017 18:05:53 GMT Content-Type: text/html Content-Length: 169 Connection: keep-alive ---response end--- 404 Not Found Skipping 169 bytes of body: [ 404 Not Found

404 Not Found


nginx/1.10.2
] done. 2017-02-15 19:05:53 ERROR 404: Not Found. Decided to load it. Enqueuing http://localhost/wget-test/script.js?foo=bar at depth 1 Queue count 1, maxcount 1. [IRI Enqueuing 'http://localhost/wget-test/script.js?foo=bar' with None Deciding whether to enqueue "https://localhost/wget-test/script.js?foo=bar". Loading robots.txt; please ignore errors. Converted file name 'localhost/robots.txt' (UTF-8) -> 'localhost/robots.txt' (ANSI_X3.4-1968) --2017-02-15 19:05:53-- https://localhost/robots.txt Certificates loaded: 174 Found localhost in host_name_addresses_map (0x563edad68630) Connecting to localhost|127.0.0.1|:443... connected. Created socket 5. Releasing 0x0000563edad68630 (new refcount 1). WARNING: The certificate of 'localhost' is not trusted. WARNING: The certificate of 'localhost' hasn't got a known issuer. The certificate's owner does not match hostname 'localhost' ---request begin--- GET /robots.txt HTTP/1.1 User-Agent: Wget/1.19.1.4-32e2 (linux-gnu) Accept: */* Accept-Encoding: identity Host: localhost Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 404 Not Found Server: nginx/1.10.2 Date: Wed, 15 Feb 2017 18:05:53 GMT Content-Type: text/html Content-Length: 169 Connection: keep-alive ---response end--- 404 Not Found Disabling further reuse of socket 4. Closed fd 4 Registered socket 5 for persistent reuse. Skipping 169 bytes of body: [ 404 Not Found

404 Not Found


nginx/1.10.2
] done. 2017-02-15 19:05:53 ERROR 404: Not Found. Decided to load it. Enqueuing https://localhost/wget-test/script.js?foo=bar at depth 1 Queue count 2, maxcount 2. [IRI Enqueuing 'https://localhost/wget-test/script.js?foo=bar' with None Dequeuing http://localhost/wget-test/script.js?foo=bar at depth 1 Queue count 1, maxcount 2. Converted file name 'localhost/wget-test/script.js?foo=bar' (UTF-8) -> 'localhost/wget-test/script.js?foo=bar' (ANSI_X3.4-1968) --2017-02-15 19:05:53-- http://localhost/wget-test/script.js?foo=bar Found localhost in host_name_addresses_map (0x563edad68630) Connecting to localhost|127.0.0.1|:80... connected. Created socket 4. Releasing 0x0000563edad68630 (new refcount 1). ---request begin--- GET /wget-test/script.js?foo=bar HTTP/1.1 Referer: http://localhost/wget-test/ User-Agent: Wget/1.19.1.4-32e2 (linux-gnu) Accept: */* Accept-Encoding: identity Host: localhost Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 200 OK Server: nginx/1.10.2 Date: Wed, 15 Feb 2017 18:05:53 GMT Content-Type: application/javascript Content-Length: 14 Last-Modified: Wed, 15 Feb 2017 15:21:43 GMT Connection: keep-alive ETag: "58a47207-e" Expires: Wed, 15 Feb 2017 18:05:54 GMT Cache-Control: max-age=1 Accept-Ranges: bytes ---response end--- 200 OK Disabling further reuse of socket 5. Registered socket 4 for persistent reuse. Length: 14 [application/javascript] Saving to: 'localhost/wget-test/script.js?foo=bar' 0K 100% 2.57M=0s 2017-02-15 19:05:53 (2.57 MB/s) - 'localhost/wget-test/script.js?foo=bar' saved [14/14] Dequeuing https://localhost/wget-test/script.js?foo=bar at depth 1 Queue count 0, maxcount 2. Converted file name 'localhost/wget-test/script.js?foo=bar' (UTF-8) -> 'localhost/wget-test/script.js?foo=bar' (ANSI_X3.4-1968) --2017-02-15 19:05:53-- https://localhost/wget-test/script.js?foo=bar Found localhost in host_name_addresses_map (0x563edad68630) Connecting to localhost|127.0.0.1|:443... connected. Created socket 5. Releasing 0x0000563edad68630 (new refcount 1). WARNING: The certificate of 'localhost' is not trusted. WARNING: The certificate of 'localhost' hasn't got a known issuer. The certificate's owner does not match hostname 'localhost' ---request begin--- GET /wget-test/script.js?foo=bar HTTP/1.1 Referer: http://localhost/wget-test/ If-Modified-Since: Wed, 15 Feb 2017 15:21:43 GMT User-Agent: Wget/1.19.1.4-32e2 (linux-gnu) Accept: */* Accept-Encoding: identity Host: localhost Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 304 Not Modified Server: nginx/1.10.2 Date: Wed, 15 Feb 2017 18:05:53 GMT Last-Modified: Wed, 15 Feb 2017 15:21:43 GMT Connection: keep-alive ETag: "58a47207-e" Expires: Wed, 15 Feb 2017 18:05:54 GMT Cache-Control: max-age=1 ---response end--- 304 Not Modified Disabling further reuse of socket 4. Closed fd 4 Registered socket 5 for persistent reuse. File 'localhost/wget-test/script.js?foo=bar.html' not modified on server. Omitting download. FINISHED --2017-02-15 19:05:53-- Total wall clock time: 0.03s Downloaded: 2 files, 259 in 0s (21.9 MB/s) Scanning localhost/wget-test/script.js?foo=bar.html (from https://localhost/wget-test/script.js?foo=bar) localhost/wget-test/script.js?foo=bar.html: No such file or directory Converting links in localhost/wget-test/script.js?foo=bar.html... nothing to do. Scanning localhost/wget-test/index.html (from http://localhost/wget-test/) Loaded localhost/wget-test/index.html (size 245). localhost/wget-test/index.html: merge('http://localhost/wget-test/', 'http://localhost/wget-test/script.js?foo=bar') -> http://localhost/wget-test/script.js?foo=bar appending 'http://localhost/wget-test/script.js?foo=bar' to urlpos. localhost/wget-test/index.html: merge('http://localhost/wget-test/', 'https://localhost/wget-test/script.js?foo=bar') -> https://localhost/wget-test/script.js?foo=bar appending 'https://localhost/wget-test/script.js?foo=bar' to urlpos. no-follow in localhost/wget-test/index.html: 0 will convert url http://localhost/wget-test/script.js?foo=bar to local localhost/wget-test/script.js?foo=bar will convert url https://localhost/wget-test/script.js?foo=bar to local localhost/wget-test/script.js?foo=bar.html Converting links in localhost/wget-test/index.html... TO_RELATIVE: http://localhost/wget-test/script.js?foo=bar to script.js?foo=bar at position 96 in localhost/wget-test/index.html. TO_RELATIVE: https://localhost/wget-test/script.js?foo=bar to script.js?foo=bar.html at position 169 in localhost/wget-test/index.html. 2-0 Converted links in 2 files in 0 seconds.