diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-10-27 22:05:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-10-27 22:05:38 +0000 |
commit | 966fa848a0213be52d3a4b3787c36ec7c5553f22 (patch) | |
tree | 113fe21384b7289127ac36f3cfb501dd6ee0571f /docs/curl.1 | |
parent | 6f8fe67ace4346c3c22fb3348d54ba1cfeb59669 (diff) |
Nis Jorgensen filed bug report #1338648
(http://curl.haxx.se/bug/view.cgi?id=1338648) which really is more of a
feature request, but anyway. It pointed out that --max-redirs did not allow
it to be set to 0, which then would return an error code on the first
Location: found. Based on Nis' patch, now libcurl supports CURLOPT_MAXREDIRS
set to 0, or -1 for infinity. Added test case 274 to verify.
Diffstat (limited to 'docs/curl.1')
-rw-r--r-- | docs/curl.1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index 8a422b9e2..a42c124b6 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -1127,7 +1127,8 @@ If this option is used several times, the last one will be used. .IP "--max-redirs <num>" Set maximum number of redirection-followings allowed. If \fI-L/--location\fP is used, this option can be used to prevent curl from following redirections -\&"in absurdum". +\&"in absurdum". By default, the limit is set to 50 redirections. Set this +option to -1 to make it limitless. If this option is used several times, the last one will be used. .IP "-0/--http1.0" |