Keith Moore wrote:
I ran into a situation today in which I needed to disable HTTP
redirection processing (3xx status codes). A little digging in
the WGET sources revealed a hard-coded limit of 20 redirection
"hops" before giving up. The attached patch makes this value
configurable via the command line (--max-redirections=NUMBER)
or via wgetrc (max_redirections=NUMBER). Setting this value
to 0 disables redirections.

The default is still 20, so default behavior has not changed.

Please consider for inclusion, if you feel this might be useful.

hi keith,

i have discussed your patch with hrvoje. we both agree that a --max-redirections option would be too low-level for Wget, and that the best solution to your problem would be to add a --no-redirections switch instead.

would you like to modify your patch to implement --no-redirections instead of --max-redirections? i would surely include it in the next wget release.

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to