Wget output document and headers to STDOUT

前端 未结 5 839
失恋的感觉
失恋的感觉 2020-12-22 18:30

I\'m trying to output the document body and its headers to STDOUT by doing

wget -S -O - http://google.com

...but it shows only the HTML docum

5条回答
  •  别那么骄傲
    2020-12-22 19:22

    This worked for me for printing response with header:

    wget --server-response http://www.example.com/
    

提交回复
热议问题