mirror http website, excluding certain files

前端 未结 4 2107
無奈伤痛
無奈伤痛 2021-02-14 19:17

I\'d like to mirror a simple password-protected web-portal to some data that i\'d like to keep mirrored & up-to-date. Essentially this website is just a directory listing wi

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-14 19:46

    Not possible with wget: http://linuxgazette.net/160/misc/lg/how_to_make_wget_exclude_a_particular_link_when_mirroring.html

    Well, I am not sure about newer versions, though.

    About 401 code, no state is kept (cookie is not used for HTTP authentication), so the username and password must be sent with every request. wget try the request w/o user & pass first before resorting to it.

提交回复
热议问题