wget without any headers

后端 未结 2 909
情深已故
情深已故 2021-01-24 00:33

I would like to get the files without headers. I have tried many things like

wget --header=\"\" http://xxxxx.xxxxxx.xx

How can I get any files

2条回答
  •  抹茶落季
    2021-01-24 01:16

    ‘--header=header-line’ Send header-line along with the rest of the headers in each http request. The supplied header is sent as-is, which means it must contain name and value separated by colon, and must not contain newlines. You may define more than one additional header by specifying ‘--header’ more than once.

          wget --header='Accept-Charset: iso-8859-2' \
               --header='Accept-Language: hr'        \
                 http://fly.srk.fer.hr/ Specification
    

    of an empty string as the header value will clear all previous user-defined headers.

    As of Wget 1.10, this option can be used to override headers otherwise generated automatically. This example instructs Wget to connect to localhost, but to specify ‘foo.bar’ in the Host header:

          wget --header="Host: foo.bar" http://localhost/ In versions
    

    of Wget prior to 1.10 such use of ‘--header’ caused sending of duplicate headers.

    http://www.gnu.org/software/wget/manual/html_node/HTTP-Options.html

提交回复
热议问题