mirror of
https://github.com/mirror/wget.git
synced 2025-03-29 21:50:16 +08:00
of the header field while RejectHeader rejects ONLY the specified full header. Since we wanted to be sure a header field is not sent to the server we wrote this rule. * doc/wget.texi: Added --disable-header documentation. * fuzz/wget_options_fuzzer.dict: Update with --disable-header inputs. * src/http.c (disabled_header): Checks for disabled headers (request_set_header): Doesn't let header to be set if disabled (gethttp): frees disabled header to let overriding * src/init.c (cmd_dis_header), (check_user_disabled_header) added new option disabled_headers. * src/main.c: added new option --disable-header, added help description * src/options.h: added new option --disable-header * src/utils.h (vec_remove_header) * src/utils.c (vec_remove_header) removes all header instances from vector * testenv/Makefile.am: Added new test files * testenv/server/http/http_server.py: Added new rule RejectHeaderField * testenv/conf/reject_header_field.py: Added new rule RejectHeaderField * testenv/README: Added help description for new rule * testenv/Test-disable-default-headers.py: Test without using --header * testenv/Test-disable-headers-after.py: Test using --header before --disable-header * testenv/Test-disable-headers-before.py: Test using --header after --disable-header Signed-off-by: sulfastor <torresmoisesa@gmail.com>, adham elkarn <adhamelkarn@hotmail.com>
213 lines
2.8 KiB
Plaintext
213 lines
2.8 KiB
Plaintext
"--"
|
|
"no-"
|
|
"on"
|
|
"off"
|
|
"="
|
|
"PEM"
|
|
"DER"
|
|
"ASN1"
|
|
"INF"
|
|
"INFINITY"
|
|
"1"
|
|
"1k"
|
|
"1m"
|
|
"1g"
|
|
"1t"
|
|
"1s"
|
|
"1m"
|
|
"1h"
|
|
"1d"
|
|
"hard"
|
|
"soft"
|
|
"none"
|
|
"ipv4"
|
|
"ipv6"
|
|
"bar"
|
|
"posix"
|
|
"pcre"
|
|
"bytes"
|
|
"bits"
|
|
"human"
|
|
"csv"
|
|
"json"
|
|
"Authorization"
|
|
"User-Agent"
|
|
"Referer"
|
|
"Cache-Control"
|
|
"Pragma"
|
|
"If-Modified-Since"
|
|
"Range"
|
|
"Accept"
|
|
"Accept-Encoding"
|
|
"Host"
|
|
"Connection"
|
|
"Proxy-Connection"
|
|
"Content-Type"
|
|
"Content-Length"
|
|
"Proxy-Authorization"
|
|
"Cookie"
|
|
"accept="
|
|
"accept-regex="
|
|
"adjust-extension="
|
|
"append-output="
|
|
"ask-password="
|
|
"auth-no-challenge="
|
|
"backup-converted="
|
|
"backups="
|
|
"base="
|
|
"bind-address="
|
|
"ca-certificate="
|
|
"cache="
|
|
"ca-directory="
|
|
"certificate="
|
|
"certificate-type="
|
|
"check-certificate="
|
|
"check-hostname="
|
|
"chunk-size="
|
|
"clobber="
|
|
"config="
|
|
"connect-timeout="
|
|
"content-disposition="
|
|
"content-on-error="
|
|
"continue="
|
|
"convert-links="
|
|
"cookies="
|
|
"cookie-suffixes="
|
|
"crl-file="
|
|
"cut-dirs="
|
|
"cut-file-get-vars="
|
|
"cut-url-get-vars="
|
|
"debug="
|
|
"default-page="
|
|
"delete-after="
|
|
"directories="
|
|
"directory-prefix="
|
|
"disable-header="
|
|
"dns-caching="
|
|
"dns-timeout="
|
|
"domains="
|
|
"egd-file="
|
|
"exclude-domains="
|
|
"execute="
|
|
"filter-mime-type="
|
|
"filter-urls="
|
|
"follow-tags="
|
|
"force-atom="
|
|
"force-css="
|
|
"force-directories="
|
|
"force-html="
|
|
"force-metalink="
|
|
"force-progress="
|
|
"force-rss="
|
|
"force-sitemap="
|
|
"fsync-policy="
|
|
"gnupg-homedir="
|
|
"gnutls-options="
|
|
"header="
|
|
"help="
|
|
"host-directories="
|
|
"hpkp="
|
|
"hpkp-file="
|
|
"hsts="
|
|
"hsts-file="
|
|
"html-extension="
|
|
"http2="
|
|
"http2-request-window="
|
|
"http-keep-alive="
|
|
"http-password="
|
|
"http-proxy="
|
|
"http-proxy-password="
|
|
"http-proxy-user="
|
|
"https-enforce="
|
|
"https-only="
|
|
"https-proxy="
|
|
"http-user="
|
|
"ignore-case="
|
|
"ignore-tags="
|
|
"inet4-only="
|
|
"inet6-only="
|
|
"input-encoding="
|
|
"input-file="
|
|
"iri="
|
|
"keep-session-cookies="
|
|
"level="
|
|
"list-plugins="
|
|
"load-cookies="
|
|
"local-db="
|
|
"local-encoding="
|
|
"local-plugin="
|
|
"max-redirect="
|
|
"max-threads="
|
|
"metalink="
|
|
"mirror="
|
|
"netrc="
|
|
"netrc-file="
|
|
"no-quiet="
|
|
"ocsp="
|
|
"ocsp-file="
|
|
"ocsp-stapling="
|
|
"output-document="
|
|
"output-file="
|
|
"page-requisites="
|
|
"parent="
|
|
"password="
|
|
"plugin="
|
|
"plugin-dirs="
|
|
"plugin-help="
|
|
"plugin-opt="
|
|
"post-data="
|
|
"post-file="
|
|
"prefer-family="
|
|
"private-key="
|
|
"private-key-type="
|
|
"progress="
|
|
"protocol-directories="
|
|
"proxy="
|
|
"quiet="
|
|
"quota="
|
|
"random-file="
|
|
"random-wait="
|
|
"read-timeout="
|
|
"recursive="
|
|
"referer="
|
|
"regex-type="
|
|
"reject="
|
|
"reject-regex="
|
|
"remote-encoding="
|
|
"report-speed="
|
|
"restrict-file-names="
|
|
"robots="
|
|
"save-cookies="
|
|
"save-headers="
|
|
"secure-protocol="
|
|
"server-response="
|
|
"signature-extension="
|
|
"span-hosts="
|
|
"spider="
|
|
"stats-all="
|
|
"stats-dns="
|
|
"stats-ocsp="
|
|
"stats-server="
|
|
"stats-site="
|
|
"stats-tls="
|
|
"strict-comments="
|
|
"tcp-fastopen="
|
|
"timeout="
|
|
"timestamping="
|
|
"tls-false-start="
|
|
"tls-resume="
|
|
"tls-session-file="
|
|
"tries="
|
|
"trust-server-names="
|
|
"use-askpass="
|
|
"user="
|
|
"user-agent="
|
|
"use-server-timestamps="
|
|
"verbose="
|
|
"verify-save-failed="
|
|
"verify-sig="
|
|
"version="
|
|
"wait="
|
|
"waitretry="
|
|
"xattr="
|