Package: wget
Version: 1.17.1-1+b1
Severity: normal


on the cmd line --user-agent="" works as expected with removal of the
user agent


$ wget --user-agent="" --server-response --debug google.com
DEBUG output created by Wget 1.17.1 on linux-gnu.

Reading HSTS entries from /home/fulano/.wget-hsts
URI encoding = ‘UTF-8’
URI encoding = ‘UTF-8’
----------time omitted----------------------------
Connecting to 127.0.0.1:8118... connected.
Created socket 4.
Releasing 0x0000563aaac9ea40 (new refcount 0).
Deleting unused 0x0000563aaac9ea40.

---request begin---
GET http://google.com/ HTTP/1.1
Accept: */*
Accept-Encoding: identity
Host: google.com
Connection: Keep-Alive
Proxy-Connection: Keep-Alive




but i just can't get the .wgetrc or /etc/wgetrc to recognise any
user-agent combination - i tried:

user-agent = ""
user-agent=""
user-agent = " "
user-agent=" "


what is the correct formatting or is it a bug?



$ wget --server-response --debug google.com


---request begin---
GET http://google.com/ HTTP/1.1
User-Agent: ""
Accept: */*
Accept-Encoding: identity
Host: google.com
Connection: Keep-Alive
Proxy-Connection: Keep-Alive






i also cannot use:

no-cookies

wget: Syntax error in /etc/wgetrc at line 140.
Parsing system wgetrc file failed.  Please check
'/etc/wgetrc',
or specify a different file using --config.




-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages wget depends on:
ii  libc6        2.21-9
ii  libgnutls30  3.4.9-2
ii  libidn11     1.32-3
ii  libnettle6   3.2-1
ii  libpcre3     2:8.38-3
ii  libpsl0      0.11.0-2
ii  libuuid1     2.27.1-4
ii  zlib1g       1:1.2.8.dfsg-2+b1

Versions of packages wget recommends:
ii  ca-certificates  20160104

wget suggests no packages.

-- Configuration Files:
/etc/wgetrc changed:
passive_ftp = on
http_proxy = http://127.0.0.1:8118
ftp_proxy = http://127.0.0.1:8118
https_proxy = http://127.0.0.1:8118
use_proxy = on
secureprotocol = PFS


-- no debconf information

Reply via email to