bug-wget
[Top][All Lists]
Advanced

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

wget2 server-response


From: Hans Carlson
Subject: wget2 server-response
Date: Sun, 25 Aug 2024 11:02:18 -0700 (PDT)

I recently installed Fedora 40 and was a bit confused by the wget output... it seemed different. After a bit of testing, I found the --server-response (-S) option didn't seem to work at all. I downloaded the old wget (1.24.5), compiled and tested and got the results I expected.

Was the --server-response option not implemented in wget2 (it does show in the --help and man page). Or is this a known bug? Or am I doing something wrong?

See output for both wget2 and wget1 below.

-------------------------------------------------------------------------
wget2 output

  $ /usr/bin/wget --version | head -n1
  GNU Wget2 2.1.0 - multithreaded metalink/file/website downloader
  $ /usr/bin/wget --server-response example.com
  index.html.2         100% 
[========================================================================================================================================================================================>]
     648     --.-KB/s
                            [Files: 1  Bytes: 648  [35.15KB/s] Redirects: 0  
Todo: 0  Errors: 0

-------------------------------------------------------------------------
wget1 output

  $ /usr/local/bin/wget --version | head -n1
  GNU Wget 1.24.5 built on linux-gnu.
  $ /usr/local/bin/wget --server-response example.com
  --2024-08-25 10:24:12--  http://example.com/
  Resolving example.com (example.com)... 93.184.215.14, 
2606:2800:21f:cb07:6820:80da:af6b:8b2c
  Connecting to example.com (example.com)|93.184.215.14|:80... connected.
  HTTP request sent, awaiting response...
    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Age: 254500
    Cache-Control: max-age=604800
    Content-Type: text/html; charset=UTF-8
    Date: Sun, 25 Aug 2024 17:24:12 GMT
    Etag: "3147526947+gzip"
    Expires: Sun, 01 Sep 2024 17:24:12 GMT
    Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
    Server: ECAcc (sed/58CB)
    Vary: Accept-Encoding
    X-Cache: HIT
    Content-Length: 1256
  Length: 1256 (1.2K) [text/html]
  Saving to: ‘index.html.3’

  index.html.3                                               
100%[=======================================================================================================================================>]
   1.23K  --.-KB/s    in 0s

  2024-08-25 10:24:12 (339 MB/s) - ‘index.html.3’ saved [1256/1256]


reply via email to

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